This document is archived and information here might be outdated.  Recommended version.


IDynamicDisplay.DrawRectangle Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IDynamicDisplay.DrawRectangle Method

Draws specified rectangle with fill and line on the dynamic display.

[Visual Basic .NET]
Public Sub DrawRectangle ( _
    ByVal envelope As IEnvelope _
)
[C#]
public void DrawRectangle (
    IEnvelope envelope
);
[C++]
HRESULT DrawRectangle(
  IEnvelope* envelope
);
[C++]

Parameters envelope [in]
envelope is a parameter of type IEnvelope

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Similar to the DrawPolygon method, the fill will be rendered according to the current Dynamic Fill Symbol attributes, and the lines will be rendered according to the current Dynamic Line Symbol attributes, as described in esriDynamicSymbolType constants.

See Also

IDynamicDisplay Interface