IXamlDirect.GetColorProperty(Object, XamlPropertyIndex) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取特定 IXamlDirect 的 Color 属性的值。
本文档适用于 Windows 应用 SDK 中 WinUI 的 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 属性的引用。
返回
指定属性的颜色值。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈