Class SolidColorBrush
Paints an area with a solid color.
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, IDependencyObject
Constructors
| Improve this Doc View SourceSolidColorBrush()
Initializes a new instance of the Solid
Declaration
public SolidColorBrush()
SolidColorBrush(Color)
Initializes a new instance of the Solid
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 |
---|---|
Dependency |
Properties
| Improve this Doc View SourceColor
Gets or sets the color of this Solid
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color | The brush's color. The default value is Transparent. |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Overrides
System.Object.ToString()