MoveToId Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Moves to the node that has an attribute of type ID whose value matches the specified string.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public override bool MoveToId(
	string id
)
Visual Basic
Public Overrides Function MoveToId ( _
	id As String _
) As Boolean
Visual C++
public:
virtual bool MoveToId(
	String^ id
) override

Parameters

id
Type: System..::..String
A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.

Return Value

true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.

See Also