TextWidth Method

Microsoft Office Web Components Object Model

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.