Table of Contents

Method MeasureLine

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

MeasureLine(int, int, int)

When implemented by a class, measures part of the string given at by its Index.

int MeasureLine(int index, int pos, int len)

Parameters

index int

Index of line to measure.

pos int

Start character of string to measure.

len int

Number of characters to measure.

Returns

int

Width of the measured part of the string.

MeasureLine(int, int, int, int, out int, bool)

When implemented by a class, measures part of the string given by its index.

int MeasureLine(int index, int pos, int len, int width, out int chars, bool exact)

Parameters

index int

Index of line to measure.

pos int

Start character of string to measure.

len int

Number of characters to measure.

width int

Maximum length of the string.

chars int

Receive real number of measured chars.

exact bool

Specifies whether the calculating should be precise.

Returns

int

Width of the measured part of the string.

MeasureLine(string, StringItemInfo[], int, int)

When implemented by a class, measures part of given string.

int MeasureLine(string line, StringItemInfo[] colorData, int pos, int len)

Parameters

line string

Text to measure.

colorData StringItemInfo[]

Color data attached to the given string.

pos int

Start character of string to measure.

len int

Number of characters to measure.

Returns

int

Width of the measured part of the string.

MeasureLine(string, StringItemInfo[], int, int, int, out int, bool)

When implemented by a class, measures part of given string.

int MeasureLine(string line, StringItemInfo[] colorData, int pos, int len, int width, out int chars, bool exact)

Parameters

line string

Text to measure.

colorData StringItemInfo[]

Color data attached to the given string.

pos int

Start character of string to measure.

len int

Number of characters to measure.

width int

Maximum length of the string.

chars int

Receive real number of measured chars.

exact bool

Specifies whether the calculating should be precise.

Returns

int

Width of the measured part of the string.