Retrieves the value of the padding attribute for the element.
Syntax
HRESULT get_padding( BSTR *p );
Parameters
- p
- Address of a variable that receives the amount (in pixels) 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 values only, the missing values are filled in from the available values. For example, if the right padding is missing, it is set to the left padding value. For details, see the padding attribute. This parameter receives NULL if the attribute is not set.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method combines the functionality of the get_paddingTop, get_paddingRight, get_paddingBottom, and get_paddingLeft methods.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the value of the padding attribute for the element. The attribute determines the amount of space between the border and the element's content.
Syntax
HRESULT put_padding( BSTR v );
Parameters
- v
- String that specifies the amount (in pixels) of top, right, bottom, and left padding, in that order. For details, see the padding attribute. Set this parameter to NULL to remove the attribute.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method combines the functionality of the get_paddingTop, get_paddingRight, get_paddingBottom, and get_paddingLeft methods.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0