Table of Contents

Method CharWidth

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

CharWidth(char, int)

Measures summary character width accordingly to specified conditions.

public double CharWidth(char ch, int count)

Parameters

ch char

Char to measure.

count int

Number of characters to measure.

Returns

double

Summary characters width.

CharWidth(char, double, out int, bool)

Measures summary character width accordingly to specified conditions.

public double CharWidth(char ch, double width, out int count, bool exact)

Parameters

ch char

Char to measure.

width double

Width which should fit characters.

count int

Receives number of characters fitted into specified width.

exact bool

Specifies whether the calculating should be precise.

Returns

double

Summary characters width.