width property
Gets the width, in CSS pixels, of a given box of text.
Syntax
object.get_width(number* p);
Property values
Type: number
Width of the given text, in CSS pixels.
Standards information
- HTML Canvas 2D Context, Section 11
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Gets the width, in CSS pixels, of a given box of text.
object.get_width(number* p);
Type: number
Width of the given text, in CSS pixels.