Skip to main content
A newer version of this page is available. .

RepositoryItemTrackBar.ShowLabels Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ShowLabels { get; set; }

Property Value

Type Default Description
Boolean **false**

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

Remarks

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowLabels property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also