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


IDisplay.DrawPolyline Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Display)  

IDisplay.DrawPolyline Method

Draws specified line on the display.

[Visual Basic .NET]
Public Sub DrawPolyline ( _
    ByVal polyline As IGeometry _
)
[C#]
public void DrawPolyline (
    IGeometry polyline
);
[C++]
HRESULT DrawPolyline(
  IGeometry* polyline
);
[C++]

Parameters polyline [in]
polyline is a parameter of type IGeometry*

Product Availability

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

Remarks

DrawPolyline draws a Polyline object with the symbol that must be specified before hand with the SetSymbol method. All draw methods must be enclosed between the calls to StartDrawing and FinishDrawing unless you are drawing in response to the IActiveViewEvents::AfterDraw event.

See Also

IDisplay Interface | IDisplay.StartDrawing Method

.NET Snippets

Flash Geometry

.NET Samples

ArcGIS Network Analyst extension barrier location editor (Code Files: EditorForm)