ChartFont Struct

The size and the weight of a text of a chart. The family is the one of the chart (ChartScene.FontFamily).

public readonly struct ChartFont : IEquatable<ChartFont>
Implements

Constructors

NameDescription
ChartFont(double, bool)The size and the weight of a text of a chart. The family is the one of the chart (ChartScene.FontFamily).

ChartFont(double, bool)

The size and the weight of a text of a chart. The family is the one of the chart (ChartScene.FontFamily).

public ChartFont(double Size, bool Bold = false)

Parameters

Size double
The size of the font, in pixels.
Bold bool
Whether the text is bold.

Properties

NameDescription
BoldWhether the text is bold.
SizeThe size of the font, in pixels.

Whether the text is bold.

public bool Bold { get; init; }

Property value

bool

The size of the font, in pixels.

public double Size { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, bool)
Equals(ChartFont)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, bool)

public void Deconstruct(out double Size, out bool Bold)

Parameters

Size double
Bold bool

No documentation is available.

Equals overloads

Equals(ChartFont)

public bool Equals(ChartFont other)
Parameters
other ChartFont
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ChartFont, ChartFont)
operator !=(ChartFont, ChartFont)

operator ==(ChartFont, ChartFont)

public static bool operator ==(ChartFont left, ChartFont right)

Parameters

left ChartFont
right ChartFont

Returns

bool

No documentation is available.

operator !=(ChartFont, ChartFont)

public static bool operator !=(ChartFont left, ChartFont right)

Parameters

left ChartFont
right ChartFont

Returns

bool

No documentation is available.