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


ILayer2.Draw Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILayer2.Draw Method

Draws the layer to the specified display for the given draw phase.

[Visual Basic .NET]
Public Sub Draw ( _
    ByVal DrawPhase As esriDrawPhase, _
    ByVal Display As IDisplay, _
    ByVal TrackCancel As ITrackCancel _
)
[C#]
public void Draw (
    esriDrawPhase DrawPhase,
    IDisplay Display,
    ITrackCancel TrackCancel
);
[C++]
HRESULT Draw(
  esriDrawPhase DrawPhase,
  IDisplay* Display,
  ITrackCancel* TrackCancel
);
[C++]

Parameters DrawPhase [in]
DrawPhase is a parameter of type esriDrawPhase Display [in]
Display is a parameter of type IDisplay TrackCancel [in]
TrackCancel is a parameter of type ITrackCancel

Product Availability

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

Remarks

This method draws the layer to the Display for the specified DrawPhase. Use the TrackCancel object to allow the drawing of the layer to be interrupted by the user.

See Also

ILayer2 Interface