SceneFontRun Struct

A part of a text that one face draws (SceneFontCollection.GetRuns).

public readonly struct SceneFontRun : IEquatable<SceneFontRun>
Implements

Constructors

NameDescription
SceneFontRun(int, int, SceneFontFace)A part of a text that one face draws (SceneFontCollection.GetRuns).

SceneFontRun(int, int, SceneFontFace)

A part of a text that one face draws (SceneFontCollection.GetRuns).

public SceneFontRun(int Start, int Length, SceneFontFace Face)

Parameters

Start int
The index of the first character of the run in the text.
Length int
The number of characters of the run.
Face SceneFontFace
The face that draws the run.

Properties

NameDescription
FaceThe face that draws the run.
LengthThe number of characters of the run.
StartThe index of the first character of the run in the text.

The face that draws the run.

public SceneFontFace Face { get; init; }

Property value

SceneFontFace

The number of characters of the run.

public int Length { get; init; }

Property value

int

The index of the first character of the run in the text.

public int Start { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(int, int, SceneFontFace)
Equals(SceneFontRun)
Equals(object)
GetHashCode()
ToString()

Deconstruct(int, int, SceneFontFace)

public void Deconstruct(out int Start, out int Length, out SceneFontFace Face)

Parameters

Start int
Length int
Face SceneFontFace

No documentation is available.

Equals overloads

Equals(SceneFontRun)

public bool Equals(SceneFontRun other)
Parameters
other SceneFontRun
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 ==(SceneFontRun, SceneFontRun)
operator !=(SceneFontRun, SceneFontRun)

operator ==(SceneFontRun, SceneFontRun)

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

Parameters

left SceneFontRun
right SceneFontRun

Returns

bool

No documentation is available.

operator !=(SceneFontRun, SceneFontRun)

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

Parameters

left SceneFontRun
right SceneFontRun

Returns

bool

No documentation is available.