ArcObjects Library Reference (Controls)  

ITOCControlEvents.OnBeginLabelEdit Event

Fires when label editing begins.

[Visual Basic 6.0]
Event OnBeginLabelEdit(
    ByVal X As Long, _
    ByVal Y As Long, _
    CanEdit As Boolean _
) As Empty
[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

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