Table of Contents

Interface ITMPSegmentData

Provides information about text segment.

public interface ITMPSegmentData

Properties

CharInfo

The CharData.Info of each character in the segment.

IEnumerable<CharData.Info> CharInfo { get; }

Property Value

IEnumerable<CharData.Info>

EndIndex

The last index of the segment within the containing text.

int EndIndex { get; }

Property Value

int

Length

The length of the animation segment.

int Length { get; }

Property Value

int

StartIndex

The first index of the segment within the containing text.

int StartIndex { get; }

Property Value

int

Methods

GetCharInfo(int)

Get a specific CharData.Info from a segment index.

CharData.Info GetCharInfo(int segmentIndex)

Parameters

segmentIndex int

Returns

CharData.Info

The CharData.Info associated with the segment index.

IndexToSegmentIndex(int)

Convert a text index to the index within the segment.

int IndexToSegmentIndex(int index)

Parameters

index int

The text index to convert.

Returns

int

The segment index.

SegmentIndexOf(CharData)

Get the segment index of the given CharData.

int SegmentIndexOf(CharData cData)

Parameters

cData CharData

Returns

int