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


ILayerDrawSetup.BeforeDraw Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerDrawSetup Interface > ILayerDrawSetup.BeforeDraw Method
ArcGIS Developer Help

ILayerDrawSetup.BeforeDraw Method

Executes before the layer draws to the display for the given draw phase.

[Visual Basic .NET]
Public Sub BeforeDraw ( _
    ByVal viewPhase As esriViewDrawPhase, _
    ByVal Display As IDisplay, _
    ByVal TrackCancel As ITrackCancel _
)
[C#]
public void BeforeDraw (
    esriViewDrawPhase viewPhase,
    IDisplay Display,
    ITrackCancel TrackCancel
);
[C++]
HRESULT BeforeDraw(
  esriViewDrawPhase viewPhase,
  IDisplay* Display,
  ITrackCancel* TrackCancel
);
[C++]
Parameters
viewPhase [in]

viewPhase is a parameter of type esriViewDrawPhase 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.

See Also

ILayerDrawSetup Interface