Sets or retrieves the width of the object.
HRESULT IHTMLStyle::get_pixelWidth(long *p);HRESULT IHTMLStyle::put_pixelWidth(long v);
- Pointer to a variable of type long that receives the width, in pixels.
- long that specifies the width, in pixels.
Returns S_OK if successful, or an error value otherwise.
Setting this property changes the value of the width without changing the units designator. Unlike the IHTMLStyle::width property, the IHTMLStyle::pixelWidth value is an integer, not a string, and is always interpreted in pixels.
For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) Document Object Model (DOM), see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.