HtmlElementCollection::Item Property (String^)

 

Gets an item from the collection by specifying its name.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property HtmlElement^ default[
	String^ elementId
] {
	HtmlElement^ get(String^ elementId);
}

Parameters

elementId
Type: System::String^

The Name or Id attribute of the element.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: