共用方式為


XamlDirect.SetObjectProperty 方法

定義

設定特定IXamlDirectObject的物件屬性值。

public:
 virtual void SetObjectProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Platform::Object ^ value) = SetObjectProperty;
void SetObjectProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, IInspectable const& value);
public void SetObjectProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, object value);
function setObjectProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetObjectProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As Object)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

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

value
Object

Platform::Object

IInspectable

要設定為指定屬性的物件值。

適用於

另請參閱