ShapingRun Struct
A part of a line of text that is shaped at once: one script and one bidirectional level, as given by TextShaper.SplitRuns.
public readonly struct ShapingRun : IEquatable<ShapingRun>- Implements
Constructors
| Name | Description |
|---|---|
| ShapingRun(int, int, UnicodeScript, byte) | A part of a line of text that is shaped at once: one script and one bidirectional level, as given by TextShaper.SplitRuns. |
ShapingRun(int, int, UnicodeScript, byte)
A part of a line of text that is shaped at once: one script and one bidirectional level, as given by TextShaper.SplitRuns.
public ShapingRun(int Index, int Length, UnicodeScript Script, byte BidiLevel)Parameters
Indexint- The index of the first UTF-16 code unit of the run in the line.
Lengthint- The number of UTF-16 code units of the run.
ScriptUnicodeScript- The script of the run.
BidiLevelbyte- The embedding level of the run, from the Unicode Bidirectional Algorithm: odd for a right-to-left run.
Properties
| Name | Description |
|---|---|
| BidiLevel | The embedding level of the run, from the Unicode Bidirectional Algorithm: odd for a right-to-left run. |
| Index | The index of the first UTF-16 code unit of the run in the line. |
| IsRightToLeft | Gets a value indicating whether the run is right to left: its level is odd. |
| Length | The number of UTF-16 code units of the run. |
| Script | The script of the run. |
BidiLevel
ShapingRun.csIndex
ShapingRun.csIsRightToLeft
ShapingRun.csLength
ShapingRun.csScript
ShapingRun.csMethods
| Name | Description |
|---|---|
| Deconstruct(int, int, UnicodeScript, byte) | |
| Equals(ShapingRun) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(int, int, UnicodeScript, byte)
public void Deconstruct(out int Index, out int Length, out UnicodeScript Script, out byte BidiLevel)Parameters
IndexintLengthintScriptUnicodeScriptBidiLevelbyte
No documentation is available.
Equals overloads
Equals(ShapingRun)
public bool Equals(ShapingRun other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ShapingRun, ShapingRun) | |
| operator !=(ShapingRun, ShapingRun) |
operator ==(ShapingRun, ShapingRun)
public static bool operator ==(ShapingRun left, ShapingRun right)No documentation is available.
operator !=(ShapingRun, ShapingRun)
public static bool operator !=(ShapingRun left, ShapingRun right)No documentation is available.