Show / Hide Table of Contents

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
object
AbstractBindable
AbstractDecoratable<IBrushDecorator>
AbstractBrush
SolidColorBrush
Implements
IBindable
IBrush
IDecoratable<IBrushDecorator>
IDecoratable
INotifyPropertyChanged
Inherited Members
AbstractBrush.IsEnabled
AbstractBrush.CalculationMode
AbstractBrush.Brightness
AbstractBrush.Opacity
AbstractBrush.Render(Rectangle, IEnumerable<RenderTarget>)
AbstractDecoratable<IBrushDecorator>.Decorators
AbstractDecoratable<IBrushDecorator>.AddDecorator(IBrushDecorator)
AbstractDecoratable<IBrushDecorator>.RemoveDecorator(IBrushDecorator)
AbstractDecoratable<IBrushDecorator>.RemoveAllDecorators()
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

SolidColorBrush(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 Source

Color

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 Source

GetColorAtPoint(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
AbstractBrush.GetColorAtPoint(in Rectangle, in RenderTarget)

Operators

| Edit this page View Source

explicit 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
| Edit this page View Source

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

Implements

IBindable
IBrush
IDecoratable<T>
IDecoratable
INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX