[]
        
(Showing Draft Content)

C1.Word.C1WordDocument.MeasureStringRtf

MeasureStringRtf Method

MeasureStringRtf(string, Font, float)

Measures an RTF string when drawn with a given Font object into a rectangle with the specified width.

Declaration
public SizeF MeasureStringRtf(string text, Font font, float width = -1)
Parameters
Type Name Description
string text

String to measure.

Font font

Font object that defines the appearance and size of the text.

float width

Maximum width of the string.

Returns
Type Description
SizeF

The size of the string expressed in points.

Implements