TextWidth Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Calculates and returns a Variant that represents the width of the specified text in pixels, based on the current font setting.

expression.TextWidth(Text)

expression   Required. An expression that returns a ChChartDraw object.

Text  Required String. The text whose size you want to calculate.