共用方式為


XamlDirect.SetGridLengthProperty 方法

定義

設定特定IXamlDirectObjectGridLength屬性值。

public:
 virtual void SetGridLengthProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, GridLength value) = SetGridLengthProperty;
void SetGridLengthProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, GridLength const& value);
public void SetGridLengthProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, GridLength value);
function setGridLengthProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetGridLengthProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As GridLength)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

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

value
GridLength

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

適用於

另請參閱