Defines this path, ring, polyline or polygon to have four line segments in the same positions as the sides of the input envelope.
[Visual Basic .NET] Public Sub SetRectangle ( _ ByVal inEnvelope As IEnvelope _ )
[C#] public void SetRectangle ( IEnvelope inEnvelope );
[C++]
HRESULT SetRectangle(
IEnvelope* inEnvelope
);
[C++]Parameters
inEnvelopeinEnvelope is a parameter of type IEnvelope
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
Sets the contents of the SegmentCollection equal to four Line segments that form the sides of the input Envelope. The Segments begin with the LowerLeft point and proceed clockwise (the first side is the left side). After SetRectangle is called, the SegmentCollection contains only the 4 Line segments (regardless of what it may have contained previously). The spatial reference of the envelope is transferred to the SegmentCollection.