Skip to content

TextStudioAppearanceRange

StructTextStudioTextStudio
public readonly struct TextStudioAppearanceRange

A half-open semantic range. Mapping domains remain intact when visible ranges acquire holes.

public TextStudioAppearanceRange(int start, int length)

Creates a half-open semantic range from its starting unit and length.

Parameters

Name Type
start System.Int32
length System.Int32

public bool Contains(int unit)

Returns whether the supplied unit lies within this half-open semantic range.

Parameters

Name Type
unit System.Int32

Returns

System.Boolean

public int Length { get; }

Returns

System.Int32

public int End { get; }

Returns

System.Int32