Contents Index Topic Contents | ||
Previous Topic: IHTMLLabelElement::put_htmlFor Next Topic: IHTMLLabelElement::put_accessKey |
IHTMLLabelElement::get_htmlFor
HRESULT get_htmlFor( BSTR *p );Retrieves which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the control-like element.
The FOR= attribute references the ID of another element. The FOR= attribute is optional when the label is implicitly defined. This is done by wrapping the label around the control the label is specified for.
See also put_htmlFor
IHTMLLabelElement::put_htmlFor
HRESULT put_htmlFor( BSTR v );Sets which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the control-like element.
The FOR= attribute references the ID of another element. The FOR= attribute is optional when the label is implicitly defined. This is done by wrapping the label around the control the label is specified for.
See also get_htmlFor
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.