IXamlDirect.SetSizeProperty(Object, XamlPropertyIndex, Size) 方法

定義

設定特定IXamlDirectSize屬性值。

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

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

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

要設定XamlPropertyIndex列舉中支援屬性值之Size屬性的參考。

value
Size

要設定在指定屬性上的 Size 值。

適用於

另請參閱