Κοινή χρήση μέσω


pixelWidth property

Sets or retrieves the width of the object.

Syntax

Integer value = object.put_pixelWidth(Integer v);Integer value = object.get_pixelWidth(Integer* iWidth);

Property values

Type: long

The width, in pixels.

String format

<integer>

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Remarks

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLStyle::posWidth