TextStudioTextProjectionSpan
public readonly struct TextStudioTextProjectionSpanOne owned mapping from projected UTF-16 text to its original input span.
Fields
Section titled “Fields”
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
IsAtomic
Section titled “IsAtomic”public readonly bool IsAtomicReturns
System.Boolean
Constructors
Section titled “Constructors”
TextStudioTextProjectionSpan(int, int, int, int, bool)
Section titled “TextStudioTextProjectionSpan(int, int, int, int, bool)”public TextStudioTextProjectionSpan(int resolvedStart, int resolvedLength, int sourceStart, int sourceLength, bool isAtomic = false)Maps one resolved UTF-16 range to its source range, optionally as one atomic semantic character.
Parameters
| Name | Type |
|---|---|
resolvedStart |
System.Int32 |
resolvedLength |
System.Int32 |
sourceStart |
System.Int32 |
sourceLength |
System.Int32 |
isAtomic |
System.Boolean |