Share via


XamlDirect.GetEnumProperty(IXamlDirectObject, XamlPropertyIndex) 方法

定义

获取特定 IXamlDirectObjectEnum 属性的值。

public:
 virtual unsigned int GetEnumProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex) = GetEnumProperty;
uint32_t GetEnumProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public uint GetEnumProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex);
function getEnumProperty(xamlDirectObject, propertyIndex)
Public Function GetEnumProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex) As UInteger

参数

xamlDirectObject
IXamlDirectObject

对特定 IXamlDirectObject 的引用。

propertyIndex
XamlPropertyIndex

Enum 属性的引用,用于从 XamlPropertyIndex 枚举中支持的属性列表中获取 的值。

返回

UInt32

unsigned int

uint32_t

可以强制转换为所需枚举类型的指定属性的 UInt32 值。

适用于

另请参阅