IHTMLMarqueeElement::width Property

Gets or sets the width of the object.

Syntax

HRESULT IHTMLMarqueeElement::get_width(VARIANT *p);
HRESULT IHTMLMarqueeElement::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++.