HtmlElementCollection::Item Property (String^)
.NET Framework (current version)
Gets an item from the collection by specifying its name.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property HtmlElement^ default[ String^ elementId ] { HtmlElement^ get(String^ elementId); }
Parameters
- elementId
- Type: System::String^
Property Value
Type: System.Windows.Forms::HtmlElement^An HtmlElement, if the named element is found. Otherwise, null.
The following code example finds a FORM object using its name, and submits its data to the server programmatically. The code example requires that your application hosts a WebBrowser control named webBrowser1.
.NET Framework
Available since 2.0
Available since 2.0
Show: