Compositor.CreateColorBrush Method

Definition

Overloads

CreateColorBrush()

Creates an instance of CompositionColorBrush.

Equivalent WinUI method: Microsoft.UI.Composition.Compositor.CreateColorBrush.

CreateColorBrush(Color)

Creates an instance of CompositionColorBrush using the specified color.

Equivalent WinUI method: Microsoft.UI.Composition.Compositor.CreateColorBrush.

CreateColorBrush()

Creates an instance of CompositionColorBrush.

Equivalent WinUI method: Microsoft.UI.Composition.Compositor.CreateColorBrush.

public:
 virtual CompositionColorBrush ^ CreateColorBrush() = CreateColorBrush;
/// [Windows.Foundation.Metadata.Overload("CreateColorBrush")]
CompositionColorBrush CreateColorBrush();
[Windows.Foundation.Metadata.Overload("CreateColorBrush")]
public CompositionColorBrush CreateColorBrush();
function createColorBrush()
Public Function CreateColorBrush () As CompositionColorBrush

Returns

CompositionColorBrush

Returns the created CompositionColorBrush object.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

See also

Applies to

CreateColorBrush(Color)

Creates an instance of CompositionColorBrush using the specified color.

Equivalent WinUI method: Microsoft.UI.Composition.Compositor.CreateColorBrush.

public:
 virtual CompositionColorBrush ^ CreateColorBrush(Color color) = CreateColorBrush;
/// [Windows.Foundation.Metadata.Overload("CreateColorBrushWithColor")]
CompositionColorBrush CreateColorBrush(Color const& color);
[Windows.Foundation.Metadata.Overload("CreateColorBrushWithColor")]
public CompositionColorBrush CreateColorBrush(Color color);
function createColorBrush(color)
Public Function CreateColorBrush (color As Color) As CompositionColorBrush

Parameters

color
Color

The color for the brush to use.

Returns

CompositionColorBrush

Returns the created CompositionColorBrush object.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

See also

Applies to