Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IHTMLLabelElement::htmlFor Property

Sets or retrieves the object to which the given label object is assigned.

Syntax


HRESULT IHTMLLabelElement::get_htmlFor(BSTR *p);HRESULT IHTMLLabelElement::put_htmlFor(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the identifier of the element to which the label element is assigned.
v
BSTR that specifies the identifier of the element to which the label element is assigned.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

Show:
© 2015 Microsoft