ImmutableSolidColorBrush Class
Definition
Fills an area with a solid color.
public class ImmutableSolidColorBrush
Constructors
| Name | Description |
|---|---|
| ImmutableSolidColorBrush (3 overloads) | Initializes a new instance of the Avalonia.Media.Immutable.ImmutableSolidColorBrush class. |
ImmutableSolidColorBrush overloads
ImmutableSolidColorBrush Constructor
Initializes a new instance of the Avalonia.Media.Immutable.ImmutableSolidColorBrush class.
public ImmutableSolidColorBrush(Avalonia.Media.Color color, double opacity, Avalonia.Media.Immutable.ImmutableTransform transform)
Parameters
color Avalonia.Media.Color
The color to use.
opacity double
The opacity of the brush.
transform Avalonia.Media.Immutable.ImmutableTransform
The transform of the brush.
ImmutableSolidColorBrush Constructor
Initializes a new instance of the Avalonia.Media.Immutable.ImmutableSolidColorBrush class.
public ImmutableSolidColorBrush(Avalonia.Media.ISolidColorBrush source)
Parameters
source Avalonia.Media.ISolidColorBrush
The brush from which this brush's properties should be copied.
ImmutableSolidColorBrush Constructor
Initializes a new instance of the Avalonia.Media.Immutable.ImmutableSolidColorBrush class.
public ImmutableSolidColorBrush(uint color)
Parameters
color uint
The color to use.
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | Returns a string representation of the brush. |
Equals overloads
Equals Method
public bool Equals(Avalonia.Media.Immutable.ImmutableSolidColorBrush other)
Parameters
other Avalonia.Media.Immutable.ImmutableSolidColorBrush
Returns
bool
Equals Method
public bool Equals(object obj)
Parameters
obj object
Returns
bool
GetHashCode Method
public int GetHashCode()
Returns
int
ToString Method
Returns a string representation of the brush.
public string ToString()
Returns
string
A string representation of the brush.
Properties
| Name | Description |
|---|---|
| Color | Gets the color of the brush. |
| Opacity | Gets the opacity of the brush. |
| Transform | Gets the transform of the brush. |
| TransformOrigin | Gets the transform origin of the brush |
Color Property
Gets the color of the brush.
public Avalonia.Media.Color Color { get; set; }
Opacity Property
Gets the opacity of the brush.
public double Opacity { get; set; }
Transform Property
Gets the transform of the brush.
public Avalonia.Media.ITransform Transform { get; set; }
TransformOrigin Property
Gets the transform origin of the brush
public Avalonia.RelativePoint TransformOrigin { get; set; }