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.v21.1.dll


public bool AutoSize { get; set; }

Property Value

Type Default Description


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


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