
IHTMLRuleStyle
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 put_marginRight(
VARIANT v
);
Sets the value of the CSS margin-right attribute for the element. The attribute determines the width of the right margin for the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the width of the right margin. The width can be positive or negative. See margin-right for details. Set this parameter to NULL to remove the attribute.
See also get_marginRight
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 put_marginBottom(
VARIANT v
);
Sets the value of the CSS margin-bottom attribute for the element. The attribute determines the height of the bottom margin for the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the height of the bottom margin. The height can be positive or negative. See margin-bottom for details. Set this parameter to NULL to remove the attribute.
See also get_marginBottom
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 put_marginLeft(
VARIANT v
);
Sets the value of the CSS margin-left attribute for the element. The attribute determines the width of the left margin for the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the width of the left margin. The width can be positive or negative. See margin-left for details. Set this parameter to NULL to remove the attribute.
See also get_marginLeft
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 put_margin(
BSTR v
);
Sets the value of the CSS margin attribute for the element. The attribute sets the top, right, bottom, and left margins for the text of the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String that specifies 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 put_marginTop, put_marginRight, put_marginBottom, and put_marginLeft functions.
See also get_margin
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 put_paddingTop(
VARIANT v
);
Sets the value of the CSS padding-top attribute for the element. The attribute determines the amount of space between the border and the top of the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the amount of top padding. See padding-top for details. Set this parameter to NULL to remove the attribute.
See also get_paddingTop
HRESULT get_paddingTop(
VARIANT *p
);
Retrieves the value of the CSS padding-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 padding-top for details. This parameter receives NULL if the attribute is not set.
See also put_paddingTop
HRESULT put_paddingRight(
VARIANT v
);
Sets the value of the CSS padding-right attribute for the element.
The attribute determines the amount of space between the border and the right of the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the amount of right padding. See padding-right for details. Set this parameter to NULL to remove the attribute.
See also get_paddingRight
HRESULT get_paddingRight(
VARIANT *p
);
Retrieves the value of the CSS padding-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 padding-right for details. This parameter receives NULL if the attribute is not set.
See also put_paddingRight
HRESULT put_paddingBottom(
VARIANT v
);
Sets the value of the CSS padding-bottom attribute for the element.
The attribute determines the amount of space between the border and the bottom of the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the amount of bottom padding. See padding-bottom for details. Set this parameter to NULL to remove the attribute.
See also get_paddingBottom
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
HRESULT put_paddingLeft(
VARIANT v
);
Sets the value of the CSS padding-left attribute for the element. The attribute determines the amount of space between the border and the left of the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the amount of left padding. See padding-left for details. Set this parameter to NULL to remove the attribute.
See also get_paddingLeft
HRESULT get_paddingLeft(
VARIANT *p
);
Retrieves the value of the CSS padding-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 padding-left for details. This parameter receives NULL if the attribute is not set.
See also put_paddingLeft
HRESULT put_padding(
BSTR v
);
Sets the value of the CSS padding attribute for the element. The attibute determines the amount of space between the border and the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String that specifies the amount of top, right, bottom, and left padding, in that order. See padding for details. Set this parameter to NULL to remove the attribute.
This function combines the functionality of the put_paddingTop, put_paddingRight, put_paddingBottom, and put_paddingLeft functions.
See also get_padding
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 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.
- Returns S_OK if successful, or an error value otherwise.
- 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
HRESULT get_border(
BSTR *p
);
Retrieves the value of the CSS border 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 border. See border for details. This parameter receives NULL if the attribute is not set.
See also put_border
HRESULT put_borderTop(
BSTR v
);
Sets the value of the CSS border-top attribute for the element. The attribute determines the width, style, and color of the top border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width, style, and color. See border-top for details. Set this parameter to NULL to remove the attribute.
See also get_borderTop
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 put_borderRight(
BSTR v
);
Sets the value of the CSS border-right attribute for the element. The attribute determines the width, style, and color of the right border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width, style, and color. See border-right for details. Set this parameter to NULL to remove the attribute.
See also get_borderRight
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 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.
- Returns S_OK if successful, or an error value otherwise.
- 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
HRESULT get_borderBottom(
BSTR *p
);
Retrieves the value of the CSS border-bottom 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 bottom border. See border-bottom for details. This parameter receives NULL if the attribute is not set.
See also put_borderBottom
HRESULT put_borderLeft(
BSTR v
);
Sets the value of the CSS border-left attribute for the element. The attribute determines the width, style, and color of the left border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width, style, and color. See border-left for details. Set this parameter to NULL to remove the attribute.
See also get_borderLeft
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 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.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. Set this parameter to NULL to remove the attribute. See border-left for details.
See also get_borderColor
HRESULT get_borderColor(
BSTR *p
);
Retrieves the value of the CSS border-color attribute of the element. The border color 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 put_borderTopColor(
VARIANT v
);
Sets the value of the CSS border-top-color attribute for the element. The attribute determines the color of the element's top border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. Set this parameter to NULL to remove the attribute. See border-top-color for details.
See also get_borderTopColor
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 put_borderRightColor(
VARIANT v
);
Sets the value of the CSS border-right-color attribute for the element. The attribute determines the color of the element's right border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. Set this parameter to NULL to remove the attribute. See border-right-color for details.
See also get_borderRightColor
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 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.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. Set this parameter to NULL to remove the attribute. See border-bottom-color for details.
See also get_borderBottomColor
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 put_borderLeftColor(
VARIANT v
);
Sets the value of the CSS border-left-color attribute for the element. The attribute determines the color of the element's left border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. Set this parameter to NULL to remove the attribute. See border-left-color for details.
See also get_borderLeftColor
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 put_borderWidth(
BSTR v
);
Sets the value of the CSS border-width attribute for the element. The attribute determines the width of the left, right, top, and bottom borders.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border widths. Set this parameter to NULL to remove the attribute. See border-width for details.
See also get_borderWidth
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 put_borderTopWidth(
VARIANT v
);
Sets the value of the CSS border-top-width attribute for the element. The attribute determines the width of the top border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width. Set this parameter to NULL to remove the attribute. See border-top-width for details.
See also get_borderTopWidth
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 put_borderRightWidth(
VARIANT v
);
Sets the value of the CSS border-right-width attribute for the element. The attribute determines the width of the right border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width. Set this parameter to NULL to remove the attribute. See border-right-width for details.
See also get_borderRightWidth
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 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.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width. Set this parameter to NULL to remove the attribute. See border-bottom-width for details.
See also get_borderBottomWidth
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 put_borderLeftWidth(
VARIANT v
);
Sets the value of the CSS border-left-width attribute for the element. The attribute determines the width of the left border.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the border width. Set this parameter to NULL to remove the attribute. See border-left-width for details.
See also get_borderLeftWidth
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
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.