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

Name Type
resolvedStart System.Int32
resolvedLength System.Int32
sourceStart System.Int32
sourceLength System.Int32
isAtomic System.Boolean