The BeforeLabelEdit event occurs when a user attempts to edit the label of the currently selected Node or ListItem object.
Private Sub object_BeforeLabelEdit(newstring)
The BeforeLabelEdit event syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
Both the AfterLabelEdit and the BeforeLabelEdit events are generated only if the LabelEdit property is set to 0 (Automatic), or if the StartLabelEdit method is invoked.
The BeforeLabelEdit event occurs after the standard Click event.
To begin editing a label, the user must first click the object to select it, and click it a second time to begin the operation. The BeforeLabelEdit event occurs after the second click.
To determine which object's label is being edited, use the SelectedItem property.