![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
A Sandcastle Documented Class Library |
HtmlDocument..::..GetElementbyId Method |
HtmlDocument Class See Also Send Feedback |
Gets the HTML node with the specified 'id' attribute value.
Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
C# |
---|
public HtmlNode GetElementbyId( string id ) |
Visual Basic |
---|
Public Function GetElementbyId ( _ id As String _ ) As HtmlNode |
Visual C++ |
---|
public: HtmlNode^ GetElementbyId( String^ id ) |
Parameters
- id
- Type: System..::..String
The attribute id to match. May not be null.