Class SolidColorBrush
Paints an area with a solid color.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class SolidColorBrush : Brush, IHasAccessToPropertiesWhereItIsUsed
Constructors
| Improve this Doc View SourceSolidColorBrush()
Initializes a new instance of the SolidColorBrush class with no color.
Declaration
public SolidColorBrush()
SolidColorBrush(Color)
Initializes a new instance of the SolidColorBrush class with the specified Color.
Declaration
public SolidColorBrush(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to apply to the brush. |
Fields
| Improve this Doc View SourceColorProperty
Identifies the Color dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceColor
Gets or sets the color of this SolidColorBrush.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
| Improve this Doc View SourceClone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
ConvertToCSSValue()
Declaration
public object ConvertToCSSValue()
Returns
Type | Description |
---|---|
System.Object |
IsAlreadyAClone()
Declaration
public bool IsAlreadyAClone()
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()