Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.