Back to Devexpress

RepositoryItemTrackBar.SmallChange Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtrackbar-f87efc00.md

latest4.9 KB
Original Source

RepositoryItemTrackBar.SmallChange Property

Gets or sets a value to be added to or subtracted from the current value when you use the ARROW keys, mouse wheel and TrackBarControl.MoveLeft/TrackBarControl.MoveRight methods.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Int321

An integer value that specifies the small change.

|

Remarks

The TrackBarControl increments/decrements the current value (TrackBarControl.Value) by the SmallChange value in the following cases:

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.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L125

csharp
this.tbProgress.Properties.Maximum = AppointmentProcessValues.Max;
this.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step;
this.edtResources.Visible = true;

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L121

csharp
this.tbProgress.Properties.Maximum = AppointmentProcessValues.Max;
this.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step;
this.edtResources.Visible = true;

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L160

vb
Me.tbProgress.Properties.Maximum = AppointmentProcessValues.Max
Me.tbProgress.Properties.SmallChange = AppointmentProcessValues.[Step]
Me.edtResources.Visible = True

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L172

vb
Me.tbProgress.Properties.Maximum = AppointmentProcessValues.Max
Me.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step
Me.edtResources.Visible = True

See Also

LargeChange

Orientation

SmallChangeUseMode

RepositoryItemTrackBar Class

RepositoryItemTrackBar Members

DevExpress.XtraEditors.Repository Namespace