![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 |
HtmlNode..::..CloneNode Method (String, Boolean) |
HtmlNode Class See Also Send Feedback |
Creates a duplicate of the node and changes its name at the same time.
Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
C# |
---|
public HtmlNode CloneNode( string newName, bool deep ) |
Visual Basic |
---|
Public Function CloneNode ( _ newName As String, _ deep As Boolean _ ) As HtmlNode |
Visual C++ |
---|
public: HtmlNode^ CloneNode( String^ newName, bool deep ) |
Parameters
- newName
- Type: System..::..String
The new name of the cloned node. May not be null.
- deep
- Type: System..::..Boolean
true to recursively clone the subtree under the specified node; false to clone only the node itself.