windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtrackbar-1c8e2537.md
Gets or sets the editor’s maximum value.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(10)]
[DXCategory("Behavior")]
public virtual int Maximum { get; set; }
<DefaultValue(10)>
<DXCategory("Behavior")>
Public Overridable Property Maximum As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 10 |
An integer value which specifies the maximum value for the track bar.
|
The Maximum property specifies the upper limit of the TrackBarControl.Value property’s value. After the value of the Maximum property has been changed, the trackbar is immediately redrawn to reflect its new range of values.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Maximum 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.
trackBar.Properties.Minimum = 0;
trackBar.Properties.Maximum = 100;
this.tbProgress.Properties.Minimum = AppointmentProcessValues.Min;
this.tbProgress.Properties.Maximum = AppointmentProcessValues.Max;
this.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step;
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L120
this.tbProgress.Properties.Minimum = AppointmentProcessValues.Min;
this.tbProgress.Properties.Maximum = AppointmentProcessValues.Max;
this.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step;
winforms-grid-update-row-style-on-cell-value-change/CS/Form1.cs#L43
RepositoryItemTrackBar riTrackBar = new RepositoryItemTrackBar();
riTrackBar.Maximum = 255;
gridView1.Columns["R"].ColumnEdit = riTrackBar;
trackBar.Properties.Minimum = 0
trackBar.Properties.Maximum = 100
Me.tbProgress.Properties.Minimum = AppointmentProcessValues.Min
Me.tbProgress.Properties.Maximum = AppointmentProcessValues.Max
Me.tbProgress.Properties.SmallChange = AppointmentProcessValues.[Step]
winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L171
Me.tbProgress.Properties.Minimum = AppointmentProcessValues.Min
Me.tbProgress.Properties.Maximum = AppointmentProcessValues.Max
Me.tbProgress.Properties.SmallChange = AppointmentProcessValues.Step
winforms-grid-update-row-style-on-cell-value-change/VB/Form1.vb#L42
Dim riTrackBar As RepositoryItemTrackBar = New RepositoryItemTrackBar()
riTrackBar.Maximum = 255
gridView1.Columns("R").ColumnEdit = riTrackBar
See Also