Class SolidColorBrush
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
SolidColorBrush
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class SolidColorBrush : AbstractBrush, IBindable, IBrush, IDecoratable<IBrushDecorator>, IDecoratable, INotifyPropertyChanged
Constructors
| Edit this page View SourceSolidColorBrush(Color)
Initializes a new instance of the SolidColorBrush class.
Declaration
public SolidColorBrush(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The Color drawn by this SolidColorBrush. |
Properties
| Edit this page View SourceColor
Gets or sets the Color drawn by this SolidColorBrush.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
| Edit this page View SourceGetColorAtPoint(in Rectangle, in RenderTarget)
Gets the color at an specific point assuming the brush is drawn into the specified rectangle.
Declaration
protected override Color GetColorAtPoint(in Rectangle rectangle, in RenderTarget renderTarget)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle | The rectangle in which the brush should be drawn. |
RenderTarget | renderTarget | The target (key/point) from which the color should be taken. |
Returns
Type | Description |
---|---|
Color | The color at the specified point. |
Overrides
Operators
| Edit this page View Sourceexplicit operator SolidColorBrush(Color)
Converts a Color to a SolidColorBrush.
Declaration
public static explicit operator SolidColorBrush(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The Color to convert. |
Returns
Type | Description |
---|---|
SolidColorBrush |
implicit operator Color(SolidColorBrush)
Converts a SolidColorBrush to a Color.
Declaration
public static implicit operator Color(SolidColorBrush brush)
Parameters
Type | Name | Description |
---|---|---|
SolidColorBrush | brush | The Color to convert. |
Returns
Type | Description |
---|---|
Color |