RepositoryItemTrackBar.ShowLabels Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ShowLabels { get; set; }
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Overridable Property ShowLabels As Boolean

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.

See Also