A newer version of this page is available. Switch to the current version.

RepositoryItemTrackBar.ShowLabels Property

Gets or sets whether the current TrackBarControl's labels are visible.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll


public virtual bool ShowLabels { get; set; }

Property Value

Type Default Description


true, if the current TrackBarControl's labels are visible; otherwise, false.


You can display labels in the TrackBarControl by adding them to the RepositoryItemTrackBar.Labels collection and enabling the ShowLabels property.

Use the RepositoryItemTrackBar.ShowLabelsForHiddenTicks property to set the visibility for the labels whose ticks are invisible due to the RepositoryItemTrackBar.TickFrequency property value.

When a RepositoryItemTrackBar object is used as an in-place editor in a column within a container control (e.g., Grid Control and XtraTreeList), the TrackBarControl's labels are not visible in row auto height mode. To make labels visible, disable the row auto height mode (via the GridOptionsView.RowAutoHeight or TreeListOptionsBehavior.AutoNodeHeight property) and manually set a custom row height (via the GridView.RowHeight or TreeList.RowHeight property) to accommodate a TrackBarControl with labels.

See Also