HtmlElement.Id Property

 

Gets or sets a label by which to identify the element.

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

public string Id { get; set; }

Property Value

Type: System.String

The unique identifier for the element.

Id must be unique; you cannot have two elements with the same Id inside of the same document. Use the Name property to give the same identifier to a group of logically related elements.

.NET Framework
Available since 2.0
Return to top
Show: