IHTMLEmbedElement::units Property

Sets or retrieves the height and width units of the embed object.

Syntax


HRESULT IHTMLEmbedElement::get_units(BSTR *p);HRESULT IHTMLEmbedElement::put_units(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
v
BSTR that specifies one of the values listed in Possible Values.

Possible Values

px Height and width are in pixels. For more information about the supported length units, see CSS Length Units.
em Height and width are relative to the height and width of the element's font. For more information about the supported length units, see CSS Length Units.

Return Value

Returns S_OK if successful, or an error value otherwise.

Show: