This topic has not yet been rated - Rate this topic

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++.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.