Back to Devexpress

RepositoryItemTrackBar.Maximum Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtrackbar-1c8e2537.md

latest5.8 KB
Original Source

RepositoryItemTrackBar.Maximum Property

Gets or sets the editor’s maximum value.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(10)]
[DXCategory("Behavior")]
public virtual int Maximum { get; set; }
vb
<DefaultValue(10)>
<DXCategory("Behavior")>
Public Overridable Property Maximum As Integer

Property Value

TypeDefaultDescription
Int3210

An integer value which specifies the maximum value for the track bar.

|

Remarks

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.

winforms-mvvm-best-practices/CS/DataBindingCapabilitiesConverters/DataBindingViaDefaultConvertersFluentAPIUserControl.cs#L20

csharp
trackBar.Properties.Minimum = 0;
trackBar.Properties.Maximum = 100;

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

csharp
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

csharp
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

csharp
RepositoryItemTrackBar riTrackBar = new RepositoryItemTrackBar();
riTrackBar.Maximum = 255;
gridView1.Columns["R"].ColumnEdit = riTrackBar;

winforms-mvvm-best-practices/VB/DataBindingCapabilitiesConverters/DataBindingViaDefaultConvertersFluentAPIUserControl.vb#L20

vb
trackBar.Properties.Minimum = 0
trackBar.Properties.Maximum = 100

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

vb
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

vb
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

vb
Dim riTrackBar As RepositoryItemTrackBar = New RepositoryItemTrackBar()
riTrackBar.Maximum = 255
gridView1.Columns("R").ColumnEdit = riTrackBar

See Also

Minimum

RepositoryItemTrackBar Class

RepositoryItemTrackBar Members

DevExpress.XtraEditors.Repository Namespace