Click to return to the Reusing Browser Technology home page    
IHTMLStyle::get_pixelHeig...     IHTMLStyle::get_pixelTop ...     IHTMLStyle Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLStyle::get_pixelLeft Method


Retrieves the left position of the element, in pixels.

Syntax

HRESULT get_pixelLeft(
    long *p 
);

Parameters

p
Address of a variable that receives the left position.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Unlike the left attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLStyle::put_pixelLeft Method


Sets the left position of the element, in pixels.

Syntax

HRESULT put_pixelLeft( 
    long v 
);

Parameters

v
Long integer value that specifies the left position. Setting this property changes the value of the left position without changing the units designator.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Unlike the left attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.