Skip to content

AfterLabelEdit Event

Description

Occurs after the tree node label text is edited.

Syntax

Public Event AfterLabelEdit( _
    ByRef Cancel As Integer, _
    ByRef NewString As String _
)

Parameters

  • Cancel: An integer that determines if the label editing operation is canceled. Any nonzero integer cancels the operation. Boolean values are also accepted.
  • NewString: The string the user entered, or Null if the user canceled the operation.

Remarks

Both the AfterLabelEdit and the BeforeLabelEdit events are generated only if the LabelEdit property is set to xtpListViewLabelAutomatic, or if the StartLabelEdit method is invoked.

The AfterLabelEdit event is generated after the user finishes the editing operation, which occurs when the user clicks on another Node or ListItem or presses the ENTER key.

To cancel a label editing operation, set Cancel to any nonzero number or to True. If a label editing operation is canceled, the previously existing label is restored.

The NewString argument can be used to test for a condition before canceling an operation.

See Also

TreeView Control


See Also

Suite Pro Controls ActiveX Control v24.0


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.