Share via


ColorPicker.MaxValue 屬性

定義

取得或設定範圍 0-100 中的最大值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property int MaxValue { int get(); void set(int value); };
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 { get; 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; }
Public Property MaxValue As Integer
<ColorPicker MaxValue="int" .../>

屬性值

Int32

int

範圍 0-100 中的最大值。 預設值為 100。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

Value 值的有效範圍是 0-100。 設定超出此範圍的值將會造成例外狀況。

適用於