Interface
INamedNodeMap

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public interface INamedNodeMap

Properties

Length

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

0
to
length-1
inclusive.

Declaration

cs-api-definition
int Length { get; }

Property Value

int

Methods

GetNamedItem(string)

Retrieves a node specified by name.

Declaration

cs-api-definition
INode GetNamedItem(string name)

Parameters

name

string

Returns

INode

A

Node
(of any type) with the specified
nodeName
, or
null
if it does not identify any node in this map.

GetNamedItemNS(string, string)

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

Declaration

cs-api-definition
INode GetNamedItemNS(string namespaceUri, string localName)

Parameters

namespaceUri

string

localName

string

Returns

INode

A

Node
(of any type) with the specified local name and namespace URI, or
null
if they do not identify any node in this map.

Item(int)

Returns the

index
th item in the map. If
index
is greater than or equal to the number of nodes in this map, this returns
null
.

Declaration

cs-api-definition
INode Item(int index)

Parameters

index

int

Returns

INode

The node at the

index
th position in the map, or
null
if that is not a valid index.

RemoveNamedItem(string)

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.

Declaration

cs-api-definition
INode RemoveNamedItem(string name)

Parameters

name

string

Returns

INode

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

Exceptions

DomException

NOT_FOUND_ERR: Raised if there is no node named

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

RemoveNamedItemNS(string, string)

Declaration

cs-api-definition
INode RemoveNamedItemNS(string namespaceUri, string localName)

Parameters

namespaceUri

string

localName

string

Returns

INode

SetNamedItem(INode)

Declaration

cs-api-definition
INode SetNamedItem(INode arg)

Parameters

arg

INode

Returns

INode

SetNamedItemNS(INode)

Declaration

cs-api-definition
INode SetNamedItemNS(INode arg)

Parameters

arg

INode

Returns

INode