Table of Contents

Class RenderBrush

Namespace
OFT.Rendering.Tools
Assembly
OFT.Rendering.dll

Defines an object used to fill objects. This class cannot be inherited.

public sealed class RenderBrush
Inheritance
object
RenderBrush
Extension Methods

Constructors

RenderBrush()

Initializes a new solid brush with the default (empty) color.

public RenderBrush()

RenderBrush(Color)

Initializes a new solid brush.

public RenderBrush(Color color)

Parameters

color Color

Fill color.

RenderBrush(Color, Color)

Initializes a new linear gradient brush; UseEndColor is true.

public RenderBrush(Color startColor, Color endColor)

Parameters

startColor Color

Start color of the gradient.

endColor Color

End color of the gradient.

Properties

EndColor

Get or set end color for linear gradient.

public Color EndColor { get; }

Property Value

Color

System.Drawing.Color

StartColor

Gets or sets the start color for linear gradient or solid color.

public Color StartColor { get; }

Property Value

Color

System.Drawing.Color

UseEndColor

Get or set use end color for linear gradient.

public bool UseEndColor { get; }

Property Value

bool

bool

Methods

Equals(RenderBrush?)

Determines whether other has the same start color, end color and UseEndColor value. object.Equals(object) and object.GetHashCode() are not overridden and compare references.

Added in ATAS 8.0.15.

public bool Equals(RenderBrush? other)

Parameters

other RenderBrush

Brush to compare with.

Returns

bool

true when the brushes are equal; false for null.