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


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

ILayerExtensionDraw.BeforeLayerDraw Method

Drawing event called before layer draws.

[Visual Basic .NET]
Public Sub BeforeLayerDraw ( _
    ByVal pLayer As ILayer, _
    ByVal DrawPhase As esriDrawPhase, _
    ByVal pDisplay As IDisplay, _
    ByVal pTrackCancel As ITrackCancel _
)
[C#]
public void BeforeLayerDraw (
    ILayer pLayer,
    esriDrawPhase DrawPhase,
    IDisplay pDisplay,
    ITrackCancel pTrackCancel
);
[C++]
HRESULT BeforeLayerDraw(
  ILayer* pLayer,
  esriDrawPhase DrawPhase,
  IDisplay* pDisplay,
  ITrackCancel* pTrackCancel
);
[C++]
Parameters
pLayer [in]

pLayer is a parameter of type ILayer* DrawPhase [in]
DrawPhase is a parameter of type esriDrawPhase pDisplay [in]
pDisplay is a parameter of type IDisplay* pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel*

Product Availability

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

See Also

ILayerExtensionDraw Interface