width property
Gets the width, in CSS pixels, of a given box of text.
![]() ![]() |
Syntax
HRESULT value = object.get_width(* p);
Property values
Type: float
Width of the given text, in CSS pixels.
Standards information
- HTML Canvas 2D Context, Section 11
See also
Build date: 11/12/2012

