Table of Contents

Class ImmutableSolidColorBrush

Namespace
Avalonia.Media.Immutable
Assembly
Avalonia.Base.dll

Fills an area with a solid color.

public class ImmutableSolidColorBrush : IImmutableSolidColorBrush, ISolidColorBrush, IImmutableBrush, IBrush, IEquatable<ImmutableSolidColorBrush>
Inheritance
ImmutableSolidColorBrush
Implements
Inherited Members
Extension Methods

Constructors

ImmutableSolidColorBrush(Color, double, ImmutableTransform?)

Initializes a new instance of the ImmutableSolidColorBrush class.

public ImmutableSolidColorBrush(Color color, double opacity = 1, ImmutableTransform? transform = null)

Parameters

color Color

The color to use.

opacity double

The opacity of the brush.

transform ImmutableTransform

The transform of the brush.

ImmutableSolidColorBrush(ISolidColorBrush)

Initializes a new instance of the ImmutableSolidColorBrush class.

public ImmutableSolidColorBrush(ISolidColorBrush source)

Parameters

source ISolidColorBrush

The brush from which this brush's properties should be copied.

ImmutableSolidColorBrush(uint)

Initializes a new instance of the ImmutableSolidColorBrush class.

public ImmutableSolidColorBrush(uint color)

Parameters

color uint

The color to use.

Properties

Color

Gets the color of the brush.

public Color Color { get; }

Property Value

Color

Opacity

Gets the opacity of the brush.

public double Opacity { get; }

Property Value

double

Transform

Gets the transform of the brush.

public ITransform? Transform { get; }

Property Value

ITransform

TransformOrigin

Gets the transform origin of the brush

public RelativePoint TransformOrigin { get; }

Property Value

RelativePoint

Methods

Equals(ImmutableSolidColorBrush?)

public bool Equals(ImmutableSolidColorBrush? other)

Parameters

other ImmutableSolidColorBrush

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Returns a string representation of the brush.

public override string ToString()

Returns

string

A string representation of the brush.

Operators

operator ==(ImmutableSolidColorBrush, ImmutableSolidColorBrush)

public static bool operator ==(ImmutableSolidColorBrush left, ImmutableSolidColorBrush right)

Parameters

left ImmutableSolidColorBrush
right ImmutableSolidColorBrush

Returns

bool

operator !=(ImmutableSolidColorBrush, ImmutableSolidColorBrush)

public static bool operator !=(ImmutableSolidColorBrush left, ImmutableSolidColorBrush right)

Parameters

left ImmutableSolidColorBrush
right ImmutableSolidColorBrush

Returns

bool