Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
width
Collapse the table of content
Expand the table of content

width property

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

HTML Canvas 2D Context, Section 11Internet Explorer 9

 

Syntax

object.get_width(number* p);

Property values

Type: number

Width of the given text, in CSS pixels.

Standards information

See also

ICanvasRenderingContext2D::measureText

 

 

Community Additions

ADD
Show:
© 2015 Microsoft