Table of Contents

Class BrushProp

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

Defines the properties of a brush.

public class BrushProp
Inheritance
BrushProp
Inherited Members

Examples

BrushProp brush = new(Color.Red);

Constructors

BrushProp(Color)

Initializes a new instance of the BrushProp class with the specified color.

public BrushProp(Color color)

Parameters

color Color

The color of the brush.

Properties

Color

Gets the color of the brush.

public Color Color { get; }

Property Value

Color

The color of the brush.

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(BrushProp?, BrushProp?)

Determines whether two brushes are equal.

public static bool operator ==(BrushProp? left, BrushProp? right)

Parameters

left BrushProp

The first brush to compare.

right BrushProp

The second brush to compare.

Returns

bool

true if the two brushes are equal; otherwise false.

operator !=(BrushProp?, BrushProp?)

Determines whether two brushes are not equal.

public static bool operator !=(BrushProp? left, BrushProp? right)

Parameters

left BrushProp

The first brush to compare.

right BrushProp

The second brush to compare.

Returns

bool

true if the two brushes are not equal; otherwise false.