Class ImmutableSolidColorBrush
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
ColorThe color to use.
opacity
doubleThe opacity of the brush.
transform
ImmutableTransformThe transform of the brush.
ImmutableSolidColorBrush(ISolidColorBrush)
Initializes a new instance of the ImmutableSolidColorBrush class.
public ImmutableSolidColorBrush(ISolidColorBrush source)
Parameters
source
ISolidColorBrushThe 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
uintThe color to use.
Properties
Color
Gets the color of the brush.
public Color Color { get; }
Property Value
Opacity
Gets the opacity of the brush.
public double Opacity { get; }
Property Value
Transform
Gets the transform of the brush.
public ITransform? Transform { get; }
Property Value
TransformOrigin
Gets the transform origin of the brush
public RelativePoint TransformOrigin { get; }
Property Value
Methods
Equals(ImmutableSolidColorBrush?)
public bool Equals(ImmutableSolidColorBrush? other)
Parameters
other
ImmutableSolidColorBrush
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
ImmutableSolidColorBrushright
ImmutableSolidColorBrush
Returns
operator !=(ImmutableSolidColorBrush, ImmutableSolidColorBrush)
public static bool operator !=(ImmutableSolidColorBrush left, ImmutableSolidColorBrush right)
Parameters
left
ImmutableSolidColorBrushright
ImmutableSolidColorBrush