Table of Contents

Method GetCharsInWidth

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

GetCharsInWidth(double)

Returns number of characters painted with current font that will fit into specified Width.

public virtual int GetCharsInWidth(double width)

Parameters

width double

Width to fit characters.

Returns

int

Number of characters that can fit in.

GetCharsInWidth(double, bool)

protected int GetCharsInWidth(double width, bool exact)

Parameters

width double
exact bool

Returns

int