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

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.v19.2.dll

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