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


ITOCControl.LabelEdit Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

ITOCControl.LabelEdit Property

Label editing state.

[Visual Basic .NET]
Public Property LabelEdit As esriTOCControlEdit
[C#]
public esriTOCControlEdit LabelEdit {get; set;}
[C++]
HRESULT get_LabelEdit(
void
);
[C++]
HRESULT put_LabelEdit(
);

Product Availability

Available with ArcGIS Engine.

Description

Use LabelEdit to determine whether label editing is controlled programmatically or through user interaction. By default label editing is automatic. To edit a map, layer, heading or legend class label, click on it at runtime, and then click on it a second time to invoke label editing. The ESC key on the keyboard can be used during the edit to cancel the LabelEdit.

Set the property to automatic to edit labels unchecked, and set to manual to trigger the OnBeginLabelEdit and OnEndLabelEdit events.

See Also

ITOCControl Interface