Export (0) Print
Expand All

IHTMLEmbedElement::width Property

Gets or sets the width of the object.

Syntax


HRESULT IHTMLEmbedElement::get_width(VARIANT *p);HRESULT IHTMLEmbedElement::put_width(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_I4 or VT_BSTR that receives one of the values listed in Possible Values.
v
VARIANT of type VT_I4 or VT_BSTR that specifies one of the values listed in Possible Values.

Possible Values

width Integer that specifies the width of the object in pixels.
percentage Not applicable to C++.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels in C++.

Community Additions

ADD
Show:
© 2014 Microsoft