
IHTMLStyle
HRESULT get_borderBottomColor(
VARIANT *p
);
Retrieves the value of the CSS border-bottom-color attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the color value. See border-bottom-color for details. This parameter receives NULL if the attribute is not set.
See also put_borderBottomColor
HRESULT get_borderBottomStyle(
BSTR *p
);
Retrieves the value of the CSS border-bottom-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border style. See border-bottom-style for details. This parameter receives NULL if the attribute is not set.
See also put_borderBottomStyle
HRESULT get_borderBottomWidth(
VARIANT *p
);
Retrieves the value of the CSS border-bottom-width attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border width. See border-bottom-width for details. This parameter receives NULL if the attribute is not set.
See also put_borderBottomWidth
HRESULT get_borderColor(
BSTR *p
);
Retrieves the value of the CSS border-color attribute of the element and must be used with the border property, except for frames. The color can be one of the color names or values given in the Color Table reference documentation.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border color values. See border-color for details. This parameter receives NULL if the attribute is not set.
See also put_borderColor
HRESULT get_borderLeft(
BSTR *p
);
Retrieves the value of the CSS border-left attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives values that describe the left border. See border-left for details. This parameter receives NULL if the attribute is not set.
See also put_borderLeft
HRESULT get_borderLeftColor(
VARIANT *p
);
Retrieves the value of the CSS border-left-color attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the color value. See border-left-color for details. This parameter receives NULL if the attribute is not set.
See also put_borderLeftColor
HRESULT get_borderLeftStyle(
BSTR *p
);
Retrieves the value of the CSS border-left-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border style. See border-left-style for details. This parameter receives NULL if the attribute is not set.
See also put_borderLeftStyle
HRESULT get_borderLeftWidth(
VARIANT *p
);
Retrieves the value of the CSS border-left-width attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border width. See border-left-width for details. This parameter receives NULL if the attribute is not set.
See also put_borderLeftWidth
HRESULT get_borderRight(
BSTR *p
);
Retrieves the value of the CSS border-right attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives values that describe the right border. See border-right for details. This parameter receives NULL if the attribute is not set.
See also put_borderRight
HRESULT get_borderRightColor(
VARIANT *p
);
Retrieves the value of the CSS border-right-color attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the color value. See border-right-color for details. This parameter receives NULL if the attribute is not set.
See also put_borderRightColor
HRESULT get_borderRightStyle(
BSTR *p
);
Retrieves the value of the CSS border-right-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border style. See border-right-style for details. This parameter receives NULL if the attribute is not set.
See also put_borderRightStyle
HRESULT get_borderRightWidth(
VARIANT *p
);
Retrieves the value of the CSS border-right-width attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border width. See border-right-width for details. This parameter receives NULL if the attribute is not set.
See also put_borderRightWidth
HRESULT get_borderStyle(
BSTR *p
);
Retrieves the value of the CSS border-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border styles. See border-style for details. This parameter receives NULL if the attribute is not set.
See also put_borderStyle
HRESULT get_borderTop(
BSTR *p
);
Retrieves the value of the CSS border-top attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives values that describe the top border. See border-top for details. This parameter receives NULL if the attribute is not set.
See also put_borderTop
HRESULT get_borderTopColor(
VARIANT *p
);
Retrieves the value of the CSS border-top-color attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the color value. See border-top-color for details. This parameter receives NULL if the attribute is not set.
See also put_borderTopColor
HRESULT get_borderTopStyle(
BSTR *p
);
Retrieves the value of the CSS border-top-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border style. See border-top-style for details. This parameter receives NULL if the attribute is not set.
See also put_borderTopStyle
HRESULT get_borderTopWidth(
VARIANT *p
);
Retrieves the value of the CSS border-top-width attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border width. See border-top-width for details. This parameter receives NULL if the attribute is not set.
See also put_borderTopWidth
HRESULT get_borderWidth(
BSTR *p
);
Retrieves the value of the CSS border-width attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the border widths. See border-width for details. This parameter receives NULL if the attribute is not set.
See also put_borderWidth
HRESULT get_clear(
BSTR *p
);
Retrieves the value of the CSS clear attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
- See clear for details. This parameter receives NULL if the attribute is not set.
See also put_clear
HRESULT get_clip(
BSTR *p
);
Retrieves the value of the CSS clip attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the coordinates of the clipping area. This variable receives NULL if the attribute is not set. See clip for details.
See also put_clip
HRESULT get_color(
VARIANT *p
);
Retrieves the value of the CSS color attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See color for details. This parameter receives NULL if the attribute is not set.
See also put_color
HRESULT get_cssText(
BSTR *p
);
Retrieves the persisted representation of the style rule.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the style rule.
See also put_cssText
HRESULT get_cursor(
BSTR *p
);
Retrieves the value of the CSS cursor attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See cursor for details. This variable receives NULL if the attribute is not set.
See also put_cursor
HRESULT get_display(
BSTR *p
);
Retrieves the value of the display attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. The variable receives "none" if the element is not being rendered, or NULL if it is.
See display for details.
See also put_display
HRESULT get_filter(
BSTR *p
);
Retrieves a filter or collection of filters for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the filter.
See also put_filter
HRESULT get_font(
BSTR *p
);
Retrieves the values of the CSS font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the values of the font-related CSS attributes. See font for details. This parameter receives NULL if no font-related CSS attributes are set for the element.
See also put_font
HRESULT get_fontFamily(
BSTR *p
);
Retrieves the value of the CSS font-family attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See font-family for details. This parameter receives NULL if the attribute is not set.
See also put_fontFamily
HRESULT get_fontSize(
VARIANT *p
);
Retrieves the value of the CSS font-size attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See font-size for details. This parameter receives NULL if the attribute is not set.
See also put_fontSize
HRESULT get_fontStyle(
BSTR *p
);
Retrieves the value of the CSS font-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
- See font-style for details. This parameter receives NULL if the attribute is not set.
See also put_fontStyle
HRESULT get_fontVariant(
BSTR *p
);
Retrieves the value of the CSS font-variant attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
- See font-variant for details. This parameter receives NULL if the attribute is not set.
The default value for this property is 1.
See also put_fontVariant
HRESULT get_fontWeight(
BSTR *p
);
Retrieves the value of the CSS font-weight attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
| normal
|
| bold
|
| bolder
|
| lighter
|
| 100
|
| 200
|
| 300
|
| 400
|
| 500
|
| 600
|
| 700
|
| 800
|
| 900
|
- See font-weight for details. This parameter receives NULL if the attribute is not set.
See also put_fontWeight
HRESULT get_height(
VARIANT *p
);
Retrieves the value of the CSS height attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the height. See height for details. This parameter receives NULL if the attribute is not set.
See also put_height
HRESULT get_left(
VARIANT *p
);
Retrieves the value of the CSS left attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- 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. The variable receives NULL if the attribute is not set. See left for details.
See also put_left
HRESULT get_letterSpacing(
VARIANT *p
);
Retrieves the value of the CSS letter-spacing for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. See letter-spacing for details.
See also put_letterSpacing
HRESULT get_lineHeight(
VARIANT *p
);
Retrieves the value of the CSS line-height attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See line-height for details. The variable receives NULL if the attribute is not set.
See also put_lineHeight
HRESULT get_listStyle(
BSTR *p
);
Retrieves the value of the CSS list-style attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See list-style for details. The variable receives NULL if the attribute is not set.
The list-style attribute is applicable only on elements that have the display attribute set to "list-item".
This function combines the functionality of the get_listStyleType, get_listStyleImage, and get_listStylePosition functions.
See also put_listStyle
HRESULT get_listStyleImage(
BSTR *p
);
Retrieves the value of the CSS list-style-image attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be either "none" or the URL of the image used as the list-item marker. See list-style-image for details. The variable receives NULL if the attribute is not set.
The list-style-image attribute is applicable only on elements that have the display attribute set to "list-item".
See also put_listStyleImage
HRESULT get_listStylePosition(
BSTR *p
);
Retrieves the value of the CSS list-style-position attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
- See list-style-position for details. The variable receives NULL if the attribute is not set.
The list-style-position attribute is applicable only on elements that have the display attribute set to "list-item".
See also put_listStylePosition
HRESULT get_listStyleType(
BSTR *p
);
Retrieves the value of the CSS list-style-type attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
| disk
|
| circle
|
| square
|
| decimal
|
| lower-roman
|
| upper-roman
|
| lower-alpha
|
| upper-alpha
|
| none
|
- See list-style-type for details. The variable receives NULL if the attribute is not set.
The list-style-type attribute is applicable only on elements that have the display attribute set to "list-item".
See also put_listStyleType
HRESULT get_margin(
BSTR *p
);
Retrieves the value of the CSS margin attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the top, right, bottom, and left margins, in that order. See margin for details. Set this parameter to NULL to remove the attribute.
This function combines the functionality of the get_marginTop, get_marginRight, get_marginBottom, and get_marginLeft functions.
See also put_margin
HRESULT get_marginBottom(
VARIANT *p
);
Retrieves the value of the CSS margin-bottom attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See margin-bottom for details. This parameter receives NULL if the attribute is not set.
See also put_marginBottom
HRESULT get_marginLeft(
VARIANT *p
);
Retrieves the value of the CSS margin-left attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See margin-left for details. This parameter receives NULL if the attribute is not set.
See also put_marginLeft
HRESULT get_marginRight(
VARIANT *p
);
Retrieves the value of the CSS margin-right attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See margin-right for details. This parameter receives NULL if the attribute is not set.
See also put_marginRight
HRESULT get_marginTop(
VARIANT *p
);
Retrieves the value of the CSS margin-top attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See margin-top for details. This parameter receives NULL if the attribute is not set.
See also put_marginTop
HRESULT get_overflow(
BSTR *p
);
Retrieves the value of the CSS overflow attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, which can be one of these strings:
- See overflow for details. The variable receives NULL if the attribute is not set.
See also put_overflow
HRESULT get_padding(
BSTR *p
);
Retrieves the value of the CSS padding attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the amount of top, right, bottom, and left padding, in that order. If this parameter specifies only one value, it applies to all sides. If it specifies two or three, the missing values are taken from the opposite side. See padding for details. This parameter receives NULL if the attribute is not set.
This function combines the functionality of the get_paddingTop, get_paddingRight, get_paddingBottom, and get_paddingLeft functions.
See also put_padding
HRESULT get_paddingBottom(
VARIANT *p
);
Retrieves the value of the CSS padding-bottom attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See padding-bottom for details. This parameter receives NULL if the attribute is not set.
See also put_paddingBottom
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.