New to Telerik UI for WPFStart a free 30-day trial

INamedNodeMap

Interface

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public interface INamedNodeMap

Properties

The number of nodes in this map. The range of valid child node indices is

csharp
0

to

csharp
length-1

inclusive.

C#
int Length { get; }

Methods

Retrieves a node specified by name.

C#
INode GetNamedItem(string name)
Parameters:namestring

INode

A

csharp
Node

(of any type) with the specified

        <pre><code class="lang-csharp">nodeName</code></pre>

, or

csharp
null

if it does not identify any node in this map.

Retrieves a node specified by local name and namespace URI. HTML-only DOM implementations do not need to implement this method.

C#
INode GetNamedItemNS(string namespaceUri, string localName)
Parameters:namespaceUristringlocalNamestring

INode

A

csharp
Node

(of any type) with the specified local name and namespace URI, or

csharp
null

if they do not identify any node in this map.

Returns the

csharp
index

th item in the map. If

csharp
index
        is greater than or equal to the number of nodes in this map, this 
        returns 
csharp
null

.

C#
INode Item(int index)
Parameters:indexint

INode

The node at the

csharp
index

th position in the map, or

        <pre><code class="lang-csharp">null</code></pre>

if that is not a valid index.

Removes a node specified by name. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.

C#
INode RemoveNamedItem(string name)
Parameters:namestringReturns:

INode

The node removed from this map if a node with such a name exists.

DomException

        NOT_FOUND_ERR: Raised if there is no node named 
csharp
name

in this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.

C#
INode RemoveNamedItemNS(string namespaceUri, string localName)
Parameters:namespaceUristringlocalNamestringReturns:

INode

C#
INode SetNamedItem(INode arg)
Parameters:argINodeReturns:

INode

C#
INode SetNamedItemNS(INode arg)
Parameters:argINodeReturns:

INode