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

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

Declaration

[DefaultValue(1)]
[DXCategory("Appearance")]
public int SmallChange { get; set; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SmallChange property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also