IXamlDirect.SetInt32Property(Object, XamlPropertyIndex, Int32) 方法

定義

設定特定IXamlDirectInt32屬性值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 void SetInt32Property(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, int value);
void SetInt32Property(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, int const& value);
public void SetInt32Property(object xamlDirectObject, XamlPropertyIndex propertyIndex, int value);
Public Sub SetInt32Property (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Integer)

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

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

value
Int32

int

要設定為指定屬性的Int32值。

適用於

另請參閱