public SetRange ( int minValue, int maxValue ) : void | ||
minValue | int | The lower limit of the range of the track bar. |
maxValue | int | The upper limit of the range of the track bar. |
Результат | void |
/// <summary> /// Sets the minimum and maximum values for a TrackBar. /// </summary> /// <param name="minValue">The lower limit of the range of the track bar.</param> /// <param name="maxValue">The upper limit of the range of the track bar.</param> public void SetRange(int minValue, int maxValue) { if ((Minimum != minValue) || (Maximum != maxValue)) { _drawTrackBar.SetRange(minValue, maxValue); PerformNeedPaint(true); } }