ColorPicker.ColorSpectrumShape 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示 ColorSpectrum 是显示为正方形还是圆形。
public:
property ColorSpectrumShape ColorSpectrumShape { ColorSpectrumShape get(); void set(ColorSpectrumShape value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
ColorSpectrumShape ColorSpectrumShape();
void ColorSpectrumShape(ColorSpectrumShape value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
ColorSpectrumShape ColorSpectrumShape();
void ColorSpectrumShape(ColorSpectrumShape value);
public ColorSpectrumShape ColorSpectrumShape { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")]
public ColorSpectrumShape ColorSpectrumShape { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ColorSpectrumShape::Box")] set; }
var colorSpectrumShape = colorPicker.colorSpectrumShape;
colorPicker.colorSpectrumShape = colorSpectrumShape;
Public Property ColorSpectrumShape As ColorSpectrumShape
<ColorPicker ColorSpectrumShape="colorSpectrumShapeName" .../>
属性值
枚举的一个值。 默认值为 Box,它将光谱显示为正方形。
- 属性
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute