Skip to main content

TrackBarControl.CustomLabel Event

Occurs when a label within the current TrackBarControl needs to be displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler<CustomLabelEventArgs> CustomLabel

Event Data

The CustomLabel event's data class is DevExpress.XtraEditors.CustomLabelEventArgs.

Remarks

You can handle the CustomLabel event and assign labels to a TrackBarControl‘s ticks. Labels can also be assigned to ticks automatically via the TrackBarControl‘s smart tag, and manually via the RepositoryItemTrackBar.Labels collection.

The CustomLabel event occurs as many times as there are ticks within a TrackBarControl. By default, this event is fired once on application start-up, before the TrackBarControl is displayed. You can manually raise the CustomLabel events sequence for all existing ticks at any time via the TrackBarControl.RefreshLabels method.

See Also