This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControlEvents Interface > ITOCControlEvents.OnBeginLabelEdit Event (ArcObjects .NET 10.5 SDK) |
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,
VARIANT_BOOL* 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 VARIANT_BOOL
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.