Table of Contents

Method StringWidth

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

StringWidth(string)

Measures specified string.

public double StringWidth(string text)

Parameters

text string

Text to measure.

Returns

double

Summary string width.

StringWidth(string, int, int)

Measures specified string.

public double StringWidth(string text, int pos, int len)

Parameters

text string

Text to measure.

pos int

Start character to measure.

len int

Number of character inside string to measure.

Returns

double

Summary string width.

StringWidth(string, int, int, double, out int, bool)

Measures specified string.

public double StringWidth(string text, int pos, int len, double width, out int count, bool exact)

Parameters

text string

Text to measure.

pos int

Start character to measure.

len int

Number of character inside string to measure.

width double

Width which should fit string.

count int

Receives number of characters fitted into specified width.

exact bool

Specifies whether the calculating should be precise.

Returns

double

Summary string width.