Skip to main content
CanvasTextMetrics object

Provides an object that contains the width attribute that the measureText method sets.

HTML Canvas 2D Context, Section 1 Internet Explorer 9

Members

The CanvasTextMetrics object has these types of members:

Properties

The CanvasTextMetrics object has these properties.

PropertyDescription

width

Gets the width, in CSS pixels, of a given box of text.

 

Standards information

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012