[]
        
(Showing Draft Content)

C1.Word.C1WordDocument.MeasureString

MeasureString Method

MeasureString(string, Font, float, StringFormat, int)

Measure string for this document.

Declaration
public static SizeF MeasureString(string text, Font font, float width, StringFormat sf, int firstChar)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

float width

The drawing width or -1 for default.

StringFormat sf

The drawing string format.

int firstChar

The zero-based starting character position of a string.

Returns
Type Description
SizeF

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

MeasureString(string, Font)

Measure string for this document.

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

The drawing string.

Font font

The drawing font.

Returns
Type Description
SizeF

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

Implements

MeasureString(string, Font, float)

Measure string for this document.

Declaration
public SizeF MeasureString(string text, Font font, float width)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

float width

The drawing width or -1 for default.

Returns
Type Description
SizeF

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

Implements

MeasureString(string, Font, float, StringFormat)

Measure string for this document.

Declaration
public SizeF MeasureString(string text, Font font, float width, StringFormat sf)
Parameters
Type Name Description
string text

The drawing string.

Font font

The drawing font.

float width

The drawing width or -1 for default.

StringFormat sf

The drawing string format.

Returns
Type Description
SizeF

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

Implements