Share via


ColorPicker.MaxValue 属性

定义

获取或设置 0-100 范围内的最大值。

public:
 property int MaxValue { int get(); void set(int value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
int MaxValue();

void MaxValue(int value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
int MaxValue();

void MaxValue(int value);
public int MaxValue { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")]
public int MaxValue { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="100")] set; }
var int32 = colorPicker.maxValue;
colorPicker.maxValue = int32;
Public Property MaxValue As Integer
<ColorPicker MaxValue="int" .../>

属性值

Int32

int

0-100 范围内的最大值。 默认值为 100。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

注解

Value 值的有效范围为 0-100。 设置超出此范围的值将导致异常。

适用于