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


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

IDynamicDisplay.DrawPolygon Method

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

[Visual Basic .NET]
Public Sub DrawPolygon ( _
    ByVal pointCollection As IPointCollection _
)
[C#]
public void DrawPolygon (
    IPointCollection pointCollection
);
[C++]
HRESULT DrawPolygon(
  IPointCollection* pointCollection
);
[C++]

Parameters pointCollection [in]
pointCollection is a parameter of type IPointCollection

Product Availability

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

Remarks

The fill will be rendered according to the current Dynamic Fill Symbol attributes, as described inesriDynamicSymbolType, and the lines will be rendered according to the current Dynamic Line Symbol attributes, as described in esriDynamicSymbolType

[C#]

In order to efficiently update your dynamic items, you should keep them in arrays of WKSPoint, and use IGeometryBridge2 interface.

[Visual Basic .NET]

In order to efficiently update your dynamic items, you should keep them in arrays of WKSPoint, and use IGeometryBridge2 interface.

See Also

IDynamicDisplay Interface