XamlDirect.SetColorProperty 方法

定義

設定特定IXamlDirectObjectColor屬性值。

public:
 virtual void SetColorProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Color value) = SetColorProperty;
void SetColorProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, Color const& value);
public void SetColorProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, Color value);
function setColorProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetColorProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As Color)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

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

value
Color

設定為指定屬性的色彩值。

適用於

另請參閱