Skip to content

TextStudioTextProjectionSpan

StructTextStudioTextStudio
public readonly struct TextStudioTextProjectionSpan

One owned mapping from projected UTF-16 text to its original input span.

public readonly int ResolvedStart

Returns

System.Int32

public readonly int ResolvedLength

Returns

System.Int32

public readonly int SourceStart

Returns

System.Int32

public readonly int SourceLength

Returns

System.Int32

public readonly bool IsAtomic

Returns

System.Boolean

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

NameType
resolvedStartSystem.Int32
resolvedLengthSystem.Int32
sourceStartSystem.Int32
sourceLengthSystem.Int32
isAtomicSystem.Boolean