Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemTrackBar.AutoSize Property

Gets or sets whether the track bar’s size is automatically calculated based on its look and feel settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AutoSize { get; set; }

#Property Value

Type Default Description
Boolean true

true to allow a track bar to automatically calculate its size; otherwise, false.

#Remarks

If the AutoSize property is set to true, a user can only change the track bar’s width (for a horizontally oriented track bar) or height (for a vertically oriented track bar).

If the AutoSize property is set to false, it’s possible to change both the width and height of the control. Changing the height of the horizontally oriented control doesn’t stretch the trackbar vertically. Instead an additional padding is added or removed above or below the trackbar. The same considerations are applied to a vertically oriented trackbar when it’s width is changed.

To specify the alignment of the trackbar region within the control when the AutoSize property is set to false use the RepositoryItemTrackBar.Alignment property.

See Also