LabelEdit

This property returns and sets a value that determines if a user can edit Node object labels in a ListView or TreeView control.

Syntax

object.LabelEdit [= integer]

Parameters

object
Object expression that evaluates to a ListView or TreeView control.
integer
Integer that determines whether the label of a Node object can be edited, as specified in Settings.

Following are the settings for integer:

0 (default)
Automatic. The BeforeLabelEdit event is generated when the user chooses the label of a selected node.
1
Manual. The BeforeLabelEdit event is generated only when the user invokes the StartLabelEdit method.

Remarks

The LabelEdit property, in combination with the StartLabelEdit method, enables you to programmatically determine when and which labels can be edited. When the LabelEdit property is set to 1, you cannot edit a label unless you invoke the StartLabelEdit method.