RepositoryItemTrackBar.SmallChange Property

Gets or sets a value to be added to or subtracted from the TrackBarControl.Value property when scrolling using the keyboard arrow keys (and the mouse wheel, provided that RepositoryItemTrackBar.SmallChangeUseMode is set to ArrowKeysAndMouse).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(1)]
[DXCategory("Appearance")]
public int SmallChange { get; set; }
<DefaultValue(1)>
<DXCategory("Appearance")>
Public Property SmallChange As Integer

Property Value

Type Default Description
Int32

1

An integer value that specifies the small change.

Remarks

When a user presses one of the arrow keys or if the TrackBarControl.MoveLeft/TrackBarControl.MoveRight method is called, the TrackBarControl.Value property changes according to the value set in the SmallChange property.

The SmallChange property can be set to a percentage of the Height (for a vertically oriented track bar) or Width (for a horizontally oriented track bar) value. This keeps the distance your track bar moves proportionate to its size.

Set the RepositoryItemTrackBar.SmallChangeUseMode property to ArrowKeysAndMouse to allow the control to be additionally scrolled by the SmallChange amount when using the mouse wheel.

See Also