TrackBar.SetRange(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the minimum and maximum values for a TrackBar.
public:
void SetRange(int minValue, int maxValue);
public void SetRange (int minValue, int maxValue);
member this.SetRange : int * int -> unit
Public Sub SetRange (minValue As Integer, maxValue As Integer)
Parameters
- minValue
- Int32
The lower limit of the range of the track bar.
- maxValue
- Int32
The upper limit of the range of the track bar.
Remarks
You can use this method to set the entire range for the TrackBar at the same time. To set the minimum or maximum values individually, use the Minimum and Maximum properties. If the minValue
parameter is greater than the maxValue
parameter, maxValue
is set equal to minValue
.
Applies to
See also
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET