NetXP 3.0 Reference

ListBar.BeforeLabelEdit Event

Raised before an item's label is about to be edited in the ListBar control. Allows the label edit to be cancelled.

[Visual Basic]
Public Event BeforeLabelEdit As ListBarLabelEditEventHandler
[C#]
public event ListBarLabelEditEventHandler BeforeLabelEdit;

Event Data

The event handler receives an argument of type ListBarLabelEditEventArgs containing data related to this event. The following ListBarLabelEditEventArgs properties provide information specific to this event.

PropertyDescription
CancelEditGets or sets a value indicating whether changes made to the label of the should be canceled.
ItemGets the zero-based index of the containing the label to edit.
Label Gets the new text assigned to the label of the .
LabelEditObject Returns the object for which label editing has been requested. Can either be a or a (or a subclass of either).

See Also

ListBar Class | NETXP.Controls.Bars Namespace