width property

[This documentation is preliminary and is subject to change.]

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

HTML Canvas 2D Context, Section 11Internet Explorer 9

Syntax

HRESULT value = object.get_width(float* p);

Property values

Type: float

Width of the given text, in CSS pixels.

Standards information

See also

measureText

 

 

Build date: 1/23/2012