Class RenderBrush
Defines an object used to fill objects. This class cannot be inherited.
public sealed class RenderBrush
- Inheritance
-
objectRenderBrush
- 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
colorColorFill color.
RenderBrush(Color, Color)
Initializes a new linear gradient brush; UseEndColor is true.
public RenderBrush(Color startColor, Color endColor)
Parameters
startColorColorStart color of the gradient.
endColorColorEnd 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
otherRenderBrushBrush to compare with.