IHTMLOptionElementFactory::createIHTMLOptionElementFactory::create*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLOptionElementFactory
*Next Topic: IHTMLOptionsHolder

IHTMLOptionElementFactory::create


HRESULT create( 
    VARIANT text,
    VARIANT value,
    VARIANT defaultselected,
    VARIANT selected,
    IHTMLOptionElement **__MIDL_0017 
);

Creates a new instance of the OPTION element. You can add the element to a SELECT block by using the IHTMLSelectElement::add method.

text
Value or string specifying the text of the element.
value
String specifying the value of the element.
defaultselected
Value indicating whether this option is selected by default. If TRUE, this option is selected by default; otherwise, it isn't.
selected
Value indicating whether this is the default option in the SELECT block. If TRUE, this option is the default; otherwise, it isn't.
__MIDL_0017
Address of a variable that receives an interface pointer for the new OPTION element.

See also IHTMLOptionElement, IHTMLSelectElement::add


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.