ArcObjects Library Reference (Controls)  

ITOCControlDefault.LabelEdit Property

Label editing state.

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

Parameters

LabelEdit [out, retval]

  LabelEdit is a parameter of type esriTOCControlEdit

LabelEdit [in]

  LabelEdit is a parameter of type esriTOCControlEdit

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

ITOCControlDefault Interface