Retrieves the current units, which can be either pixels or ems, used to caculate the height and width.
Syntax
HRESULT get_units( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that contains the unit type. For details, see the units property.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the units, which can be either pixels or ems, that the height and width are calculated in.
Syntax
HRESULT put_units( BSTR v );
Parameters
- v
- String (BSTR) value that contains the units to set. For details, see the units property.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0