ImmutableSolidColorBrush Struct

Summary

Fills an area with a solid color.
Namespace
Avalonia.Media.Immutable
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["ISolidColorBrush"] click Interface0 "/api/Avalonia.Media/ISolidColorBrush" Type-.->Interface1["IBrush"] click Interface1 "/api/Avalonia.Media/IBrush" Type-.->Interface2["IEquatable<ImmutableSolidColorBrush>"] Type["ImmutableSolidColorBrush"] class Type type-node

Syntax

public readonly struct ImmutableSolidColorBrush : ValueType, ISolidColorBrush, IBrush, 
    IEquatable<ImmutableSolidColorBrush>

Constructors

Name Summary
ImmutableSolidColorBrush(Color, double) Initializes a new instance of the ImmutableSolidColorBrush class.
ImmutableSolidColorBrush(ISolidColorBrush) Initializes a new instance of the ImmutableSolidColorBrush class.
ImmutableSolidColorBrush(uint) Initializes a new instance of the ImmutableSolidColorBrush class.

Properties

Name Value Summary
Color Color
Gets the color of the brush.
Opacity double
Gets the opacity of the brush.

Methods

Name Value Summary
Equals(ImmutableSolidColorBrush) bool
Equals(object) bool
GetHashCode() int
ToString() string
Returns a string representation of the brush.

Operators

Name Value Summary
operator !=(ImmutableSolidColorBrush, ImmutableSolidColorBrush) bool
operator ==(ImmutableSolidColorBrush, ImmutableSolidColorBrush) bool

Extension Methods

Name Value Summary
ToImmutable() IBrush
Converts a brush to an immutable brush.