IXamlDirect.GetColorProperty(Object, XamlPropertyIndex) 方法

定义

获取特定 IXamlDirectColor 属性的值。

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

public:
 Color GetColorProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
Color GetColorProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public Color GetColorProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetColorProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As Color

参数

xamlDirectObject
Object

Platform::Object

IInspectable

对特定 IXamlDirect 的引用。

propertyIndex
XamlPropertyIndex

对要从 XamlPropertyIndex 枚举中受支持属性列表中获取值的 Color 属性的引用。

返回

指定属性的颜色值。

适用于

另请参阅