Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.
Syntax
HRESULT get_htmlFor( BSTR *p );
Parameters
- p
- Address of a variable that receives the control-like element.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
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
Sets which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.
Syntax
HRESULT put_htmlFor( BSTR v );
Parameters
- v
- String specifying the control-like element.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
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, IHTMLLabelElement
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.