TextStudioTextUnit
public readonly struct TextStudioTextUnitMapping between one semantic reveal unit and its resolved, display, source, and visible-glyph ranges.
Fields
Section titled “Fields”
unitIndex
Section titled “unitIndex”public readonly int unitIndexReturns
System.Int32
resolvedStart
Section titled “resolvedStart”public readonly int resolvedStartReturns
System.Int32
resolvedLength
Section titled “resolvedLength”public readonly int resolvedLengthReturns
System.Int32
sourceStart
Section titled “sourceStart”public readonly int sourceStartReturns
System.Int32
sourceLength
Section titled “sourceLength”public readonly int sourceLengthReturns
System.Int32
Constructors
Section titled “Constructors”
TextStudioTextUnit(int, int, int, int, int)
Section titled “TextStudioTextUnit(int, int, int, int, int)”public TextStudioTextUnit(int unitIndex, int resolvedStart, int resolvedLength, int sourceStart, int sourceLength)Creates a semantic-unit mapping with explicit UTF-16 and glyph range lengths.
Parameters
| Name | Type |
|---|---|
unitIndex |
System.Int32 |
resolvedStart |
System.Int32 |
resolvedLength |
System.Int32 |
sourceStart |
System.Int32 |
sourceLength |
System.Int32 |
Properties
Section titled “Properties”
ResolvedEnd
Section titled “ResolvedEnd”public int ResolvedEnd { get; }Returns
System.Int32
SourceEnd
Section titled “SourceEnd”public int SourceEnd { get; }Returns
System.Int32