[]
        
(Showing Draft Content)

C1.WPF.Word.C1WordDocument.MeasureString

MeasureString Method

MeasureString(string, Font, double, StringFormat)

Measure string for this document.

Declaration
public static Size MeasureString(string text, Font font, double width, StringFormat sf)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

double width

The drawing width or -1 for default.

StringFormat sf

The drawing string format.

Returns
Type Description
Size

The size, in points, of the string specified as drawn with the font parameter.

MeasureString(string, Font, double)

Measure string for the RTF document.

Declaration
public static Size MeasureString(string text, Font font, double width)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

double width

The drawing width or -1 for default.

Returns
Type Description
Size

The size, in points, of the string specified as drawn with the font parameter.

MeasureString(string, Font)

Measure string for this document.

Declaration
public static Size MeasureString(string text, Font font)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

Returns
Type Description
Size

The size, in points, of the string specified as drawn with the font parameter.