Share via


XamlDirect.SetColorProperty 方法

定义

设置特定 IXamlDirectObject的 Color 属性的值。

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

要设置为指定属性的颜色值。

适用于

另请参阅