RangeBase.Value Property

Definition

获取或设置范围控件的当前数量。Gets or sets the current magnitude of the range control.

public:
 property double Value { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
public double Value { get; set; }
member this.Value : double with get, set
Public Property Value As Double

Property Value

Double

范围控件的当前数量。The current magnitude of the range control. 默认值为 0。The default is 0.

Attributes

Remarks

RangeBase 控件以某种方式直观地指示 Value 属性。The RangeBase control visually indicates the Value property in some way. 例如,滑块和滚动条控件具有一个与控件的 Value 同步的缩略图。For example, the slider and scrollbar controls have a thumb that is synchronized with the Value of the control.

如果将 Value 设置为小于 Minimum 属性的数字,则 Value 设置为 MinimumIf you set Value to a number that is less than the Minimum property, Value is set to Minimum. 如果将 Value 设置为大于 Maximum 属性的数字,则 Value 设置为 MaximumIf you set Value to a number that is greater than the Maximum property, Value is set to Maximum.

依赖项属性信息Dependency Property Information

标识符字段Identifier field ValueProperty
元数据属性设置为 trueMetadata properties set to true BindsTwoWayByDefaultJournalBindsTwoWayByDefault, Journal

Applies to