IXamlDirect.SetGridLengthProperty 方法

定義

設定特定IXamlDirectGridLength屬性值。

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

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

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

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

value
GridLength

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

適用於

另請參閱