New to Telerik UI for WPF? Start 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

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

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

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

(of any type) with the specified

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

       , or 

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

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

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

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

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

if they do not identify any node in this map.

Returns the

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

       th item in the map. If 

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

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

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

       .
C#
INode Item(int index)
Parameters:indexint

INode

The node at the

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

       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 

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

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