IHTMLStyle::get_paddingLeft
IHTMLStyle

IHTMLStyle::get_paddingLeft


HRESULT get_paddingLeft( 
    VARIANT *p 
);

Retrieves the value of the CSS padding-left attribute for the element.

p
Address of a variable that receives the value of the attribute. See padding-left for details. This parameter receives NULL if the attribute is not set.

See also put_paddingLeft

IHTMLStyle::get_paddingRight

HRESULT get_paddingRight( 
    VARIANT *p 
);

Retrieves the value of the CSS padding-right attribute for the element.

p
Address of a variable that receives the value of the attribute. See padding-right for details. This parameter receives NULL if the attribute is not set.

See also put_paddingRight

IHTMLStyle::get_paddingTop

HRESULT get_paddingTop(
    VARIANT *p 
);

Retrieves the value of the CSS padding-top attribute for the element.

p
Address of a variable that receives the value of the attribute. See padding-top for details. This parameter receives NULL if the attribute is not set.

See also put_paddingTop

IHTMLStyle::get_pageBreakAfter

HRESULT get_pageBreakAfter( 
    BSTR *p 
);

Retrieves the value of the CSS page-break-after attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
auto Insert a page break after the element only if necessary.
always Always insert a page break after the element.
left Insert one or two page breaks after the element until a blank left page is reached.
right Insert one or two page breaks after the element until a blank right page is reached.
See page-break-after for details. The variable receives NULL if the attribute is not set.

See also put_pageBreakAfter

IHTMLStyle::get_pageBreakBefore

HRESULT get_pageBreakBefore(
    BSTR *p 
);

Retrieves the value of the CSS page-break-before attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
auto Insert a page break before the element only if necessary.
always Always insert a page break before the element.
left Insert one or two page breaks before the element until a blank left page is reached.
right Insert one or two page breaks before the element until a blank right page is reached.
See page-break-before for details. The variable receives NULL if the attribute is not set.

See also put_pageBreakBefore

IHTMLStyle::get_pixelHeight

HRESULT get_pixelHeight( 
    long *p 
);

Retrieves the height of the element, in pixels.

p
Address of a variable that receives the height.

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

See also put_pixelHeight

IHTMLStyle::get_pixelLeft

HRESULT get_pixelLeft(
    long *p 
);

Retrieves the left position of the element, in pixels.

p
Address of a variable that receives the left position.

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

See also put_pixelLeft

IHTMLStyle::get_pixelTop

HRESULT get_pixelTop( 
   long *p 
);

Retrieves the top position of the element, in pixels.

p
Address of a variable that receives the top position.

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

See also put_pixelTop

IHTMLStyle::get_pixelWidth

HRESULT get_pixelWidth(
    long *p 
);

Retrieves the width of the element, in pixels.

p
Address of a variable that receives the width.

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

See also put_pixelWidth

IHTMLStyle::get_posHeight

HRESULT get_posHeight(
    float *p 
);

Retrieves the height of the element.

p
Address of a variable that receives the height position.

Unlike the height property, this property's value is a floating-point number, not a string.

See also put_posHeight

IHTMLStyle::get_position

HRESULT get_position(
    BSTR *p 
);

Retrieves the value of the CSS position attribute for the element. The attribute specifies whether the element can be positioned and, if so, the position of the element relative to its parent object.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
absolute The element is placed relative to the document.
relative The element is placed relative to its parent object.
static The element cannot be positioned.
See position for details. This variable receives NULL if the attribute is not set.

The position attribute is not inherited.

IHTMLStyle::get_posLeft

HRESULT get_posLeft(
    float *p 
) ;

Retrieves the left position of the element.

p
Address of a variable that receives the left position.

Unlike the left property, this property's value is a floating-point number, not a string.

See also put_posLeft

IHTMLStyle::get_posTop

HRESULT get_posTop(
    float *p 
);

Retrieves the top position of the element.

p
Address of a variable that receives the top position.

Unlike the top property, this property's value is a floating-point number, not a string.

See also put_posTop

IHTMLStyle::get_posWidth

HRESULT get_posWidth(
    float *p 
);

Retrieves the width position of the element.

p
Address of a variable that receives the width position.

Unlike the width property, this property's value is a floating-point number, not a string.

See also put_posWidth

IHTMLStyle::get_styleFloat

HRESULT get_styleFloat(
    BSTR *p 
);

Retrieves the value of the CSS float attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
left
right
none
See height for details. This parameter receives NULL if the attribute is not set.

See also put_styleFloat

IHTMLStyle::get_textAlign

HRESULT get_textAlign(
    BSTR *p 
);

Retrieves the value of the CSS text-align attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
left
right
center
justify
See text-align for details. This parameter receives NULL if the attribute is not set.

See also put_textAlign

IHTMLStyle::get_textDecoration

HRESULT get_textDecoration( 
    BSTR *p 
);

Retrieves the value of the CSS text-decoration attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. See text-decoration for details.

See also put_textDecoration

IHTMLStyle::get_textDecorationBlink

HRESULT get_textDecorationBlink( 
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "blink".

p
Address of a variable that receives TRUE if the attribute has a value of "blink", or FALSE if not. See text-decoration for details.

See also put_textDecorationBlink

IHTMLStyle::get_textDecorationLineThrough

HRESULT get_textDecorationLineThrough( 
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "line-through".

p
Address of a variable that receives TRUE if the attribute has a value of "line-through", or FALSE if not. See text-decoration for details.

See also put_textDecorationLineThrough

IHTMLStyle::get_textDecorationNone

HRESULT get_textDecorationNone(
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "none".

p
Address of a variable that receives TRUE if the attribute has a value of "none", or FALSE if not. See text-decoration for details.

See also put_textDecorationNone

IHTMLStyle::get_textDecorationOverline

HRESULT get_textDecorationOverline(
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "overline".

p
Address of a variable that receives TRUE if the attribute has a value of "overline", or FALSE if not. See text-decoration for details.

See also put_textDecorationOverline

IHTMLStyle::get_textDecorationUnderline

HRESULT get_textDecorationUnderline( 
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "underline".

p
Address of a variable that receives TRUE if the attribute has a value of "underline", or FALSE if not. See text-decoration for details.

See also put_textDecorationUnderline

IHTMLStyle::get_textIndent

HRESULT get_textIndent( 
    VARIANT *p 
);

Retrieves the value of the CSS text-indent attribute for the element.

p
Address of a variable that receives the value of the attribute. See text-indent for details. This parameter receives NULL if the attribute is not set.

See also put_textIndent

IHTMLStyle::get_textTransform

HRESULT get_textTransform( 
    BSTR *p 
);

Retrieves the value of the CSS text-transform attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
capitalize First letter in the text is capitalized.
lowercase All letters in the text are converted to lowercase.
uppercase All letters in the text are converted to uppercase.
See text-transform for details. This parameter receives NULL if the attribute is not set.

See also put_textTransform

IHTMLStyle::get_top

HRESULT get_top(
    VARIANT *p 
);

Retrieves the value of the CSS top attribute for the element.

p
Address of a variable that receives the value of the attribute. The value is a string consisting of a floating-point number and a units designator. See top for details. The variable receives NULL if the attribute is not set.

See also put_top

IHTMLStyle::get_verticalAlign

HRESULT get_verticalAlign(
    VARIANT *p 
);

Retrieves the value of the CSS vertical-align attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. Can be one of these strings:
baseline
middle
sub
super
text-top
text-bottom
top
bottom
See vertical-align for details.

See also put_verticalAlign

IHTMLStyle::get_visibility

HRESULT get_visibility( 
    BSTR *p 
);

Retrieves the value of the visibility attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
visible
hidden
inherit
See visibility for details. The variable receives NULL if the attribute is not set.

See also put_visibility

IHTMLStyle::get_whiteSpace

HRESULT get_whiteSpace(
    BSTR *p 
);

Retrieves the value of the CSS white-space attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
normal Consecutive white-space characters are replaced with a single space.
nowrap Linebreak characters are preserved, but consecutive spaces and tab characters are replaced with a single space.
pre All white-space characters (including line breaks) are preserved.
The variable receives NULL if the attribute is not set.

See also put_whiteSpace

IHTMLStyle::get_width

HRESULT get_width(
    VARIANT *p 
);

Retrieves the value of the CSS width attribute for the element.

p
Address of a variable that receives the width. See width for details. This parameter receives NULL if the attribute is not set.

See also put_width

IHTMLStyle::get_wordSpacing

HRESULT get_wordSpacing(
    VARIANT *p 
);

Retrieves the value of the CSS word-spacing attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set.

See also put_wordSpacing

IHTMLStyle::get_zIndex

HRESULT get_zIndex(
    VARIANT *p 
);

Retrieves the value of the CSS z-index attribute for the element.

p
Address of a variable that receives the z-index. The variable receives a positive value if the element is positioned above the text, and a negative value if it is below. See z-index for details. The variable receives NULL if the attribute is not set.

See also put_zIndex

IHTMLStyle::getAttribute

HRESULT getAttribute( 
    BSTR strAttributeName, 
    LONG fFlags, 
    VARIANT *AttributeValue 
);

Retrieves the value of the given attribute.

strAttributeName
String specifying the name of the attribute to retrieve.
fFlags
Long integer that receives the flags.
AttributeValue
Address of a variable that receives a string, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns NULL.

If two or more attributes have the same name (differing only in uppercase and lowercase letters) and fFlags is FALSE, this method retrieves values only for the last attribute (the last to be created with this name). All other attributes of the same name are ignored.

See also setAttribute

IHTMLStyle::put_background

HRESULT put_background(
    BSTR v 
);

Sets the value of the CSS background attribute for the element.

v
String specifying the value of the attribute, or NULL to remove it. See background for details.

See also get_background

IHTMLStyle::put_backgroundAttachment

HRESULT put_backgroundAttachment( 
    BSTR v 
);

Sets the value of the CSS background-attachment attribute for the element. If the element has a background image, this attribute determines if the image is fixed with regard to the text of the element, or if it scrolls with the text.

v
String specifying the value of the attribute, or NULL to remove it. Can be one of these strings:
fixed Background image remains fixed.
scroll Background image scrolls with text.
See background-attachment for details.

See also get_backgroundAttachment

IHTMLStyle::put_backgroundColor

HRESULT put_backgroundColor(
    VARIANT v 
);

Sets the CSS background-color attribute for the element.

v
String or value specifying the background color, or NULL to remove the attribute. The color can be one of the color names or values given in the Color Table reference documentation.

See also get_backgroundColor

IHTMLStyle::put_backgroundImage

HRESULT put_backgroundImage(
    BSTR v 
);

Sets a CSS background-image attribute for the element.

v
String specifying the URL of the background image, or NULL to remove the attribute. See background-image for details.

See also get_backgroundImage

IHTMLStyle::put_backgroundPosition

HRESULT put_backgroundPosition(
    BSTR v 
);

Sets the value of the CSS background-position attribute for the element. The attribute determines the initial position of the background image, if any.

v
String specifying the initial background position, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPosition

IHTMLStyle::put_backgroundPositionX

HRESULT put_backgroundPositionX(
    VARIANT v 
);

Sets the x-coordinate of the CSS background-position attribute for the element. The attribute determines the initial horizontal position of the background image, if any.

v
String or value specifying the x-coordinate, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPositionX

IHTMLStyle::put_backgroundPositionY

HRESULT put_backgroundPositionY(
    VARIANT v 
);

Sets the y-coordinate of the CSS background-position attribute for the element. The attribute determines the initial vertical position of the background image, if any.

v
String or value specifying the y-coordinate, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPositionY

IHTMLStyle::put_backgroundRepeat

HRESULT put_backgroundRepeat( 
    BSTR v 
);

Sets the value of the CSS background-repeat attribute for the element. The attribute determines whether and how the background image, if any, is repeated.

v
String specifying whether and how the image is repeated, or NULL to remove the attribute. Can be one of these strings:
norepeat Do not repeat.
repeaty Repeat vertically.
repeat Repeat both horizontally and vertically.
repeatx Repeat horizontally.
See background-repeat for details.

See also get_backgroundRepeat

IHTMLStyle::put_border

HRESULT put_border(
    BSTR v 
);

Sets the value of the CSS border attribute for the element. The attribute describes the color, style, and width of the border to display around the element.

v
String specifying values that describe the border. See border for details. Set this parameter to NULL to remove the attribute.

See also get_border

IHTMLStyle::put_borderBottom

HRESULT put_borderBottom(
    BSTR v 
);

Sets the value of the CSS border-bottom attribute for the element. The attribute determines the width, style, and color of the bottom border.

v
String specifying the border width, style, and color. See border-bottom for details. Set this parameter to NULL to remove the attribute.

See also get_borderBottom

IHTMLStyle::put_borderBottomColor

HRESULT put_borderBottomColor(
    VARIANT v 
);

Sets the value of the CSS border-bottom-color attribute for the element. The attribute determines the color of the element's bottom border.

v
String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. See border-bottom-color for details. Set this parameter to NULL to remove the attribute.

See also get_borderBottomColor

IHTMLStyle::put_borderBottomStyle

HRESULT put_borderBottomStyle( 
    BSTR v 
);

Sets the value of the CSS border-bottom-style attribute for the element. The attribute determines the style of the bottom border.

v
String specifying the border style. See border-bottom-style for details. Set this parameter to NULL to remove the attribute.

See also get_borderBottomStyle

IHTMLStyle::put_borderBottomWidth

HRESULT put_borderBottomWidth(
    VARIANT v 
);

Sets the value of the CSS border-bottom-width attribute for the element. The attribute determines the width of the bottom border.

v
String specifying the border width. See border-bottom-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderBottomWidth

IHTMLStyle::put_borderColor

HRESULT put_borderColor(
    BSTR v 
);

Sets the value of the CSS border-color attribute for the element. The attribute determines the color of the element's four borders.

v
String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. See border-left for details. Set this parameter to NULL to remove the attribute.

See also get_borderColor

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.