TextWidth Method

Applies To   See Also

Returns the width of a text string as it would be displayed in the current font.

Syntax

[nWidth =] [FormSet.]Object.TextWidth(cText)

Arguments

nWidth

Returns a value in pixels specifying the width of the text string.

cText

Specifies the character string for which the text width is determined.

Remarks

The TextWidth method determines the amount of horizontal space required to display cText.