Share via


TextWidth Method

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.

Applies to | ChChartDraw Object