XamlDirect.SetEnumProperty 方法

定義

設定特定IXamlDirectObjectEnum屬性值。

public:
 virtual void SetEnumProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, unsigned int value) = SetEnumProperty;
void SetEnumProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, uint32_t const& value);
public void SetEnumProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, uint value);
function setEnumProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetEnumProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As UInteger)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

列舉屬性的參考,可從XamlPropertyIndex列舉中支援的屬性清單中設定 的值。

value
UInt32

unsigned int

uint32_t

將所需的 Enum 值轉換為 UInt32 ,以設定為指定的屬性。

適用於

另請參閱