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


ITOCControlEvents.OnBeginLabelEdit Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControlEvents Interface > ITOCControlEvents.OnBeginLabelEdit Event
ArcGIS Developer Help

ITOCControlEvents.OnBeginLabelEdit Event

Fires when label editing begins.

[Visual Basic .NET]
Public Event OnBeginLabelEdit As OnBeginLabelEditEventHandler
[C#]
public event OnBeginLabelEditEventHandler OnBeginLabelEdit
[C++]
HRESULT OnBeginLabelEdit(
  long X,
  long Y,
  Boolean* CanEdit
);
[C++]
Parameters
X [in]

X is a parameter of type long Y [in]
Y is a parameter of type long CanEdit [in, out]
CanEdit is a parameter of type bool*

Product Availability

Available with ArcGIS Engine.

Description

canEdit specifies a boolean indicating whether the label can be edited. By default all labels can be editied. Set canEdit to False to prevent the label from being changed. Use the HitTest method to determine what kind of item label is being editied.

See Also

ITOCControlEvents Interface