IHTMLOptionElement::text Property

Sets or retrieves the text string specified by the option tag.

Syntax

HRESULT IHTMLOptionElement::get_text(BSTR *p);
HRESULT IHTMLOptionElement::put_text(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the text.
  • v
    BSTR that specifies the text.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Assigning a value to the IHTMLOptionElement::text property changes the IHTMLOptionElement::text property internally, but does not cause the listed value to change. Submitting the form submits the internally stored value, not the one displayed.