Back to Devexpress

RepositoryItemTrackBar.ShowLabels Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtrackbar-849c2bcf.md

latest3.2 KB
Original Source

RepositoryItemTrackBar.ShowLabels Property

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

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

Labels

ShowLabelsForHiddenTicks

RepositoryItemTrackBar Class

RepositoryItemTrackBar Members

DevExpress.XtraEditors.Repository Namespace