Interface INamedNodeMap
Namespace: Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
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
int Length { get; }
Property Value
System.Int32
|
Methods
GetNamedItem(String)
Retrieves a node specified by name.
Declaration
INode GetNamedItem(string name)
Parameters
System.String
name
|
Returns
INode
A (of any type) with the specified
, or 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
INode GetNamedItemNS(string namespaceUri, string localName)
Parameters
System.String
namespaceUri
|
System.String
localName
|
Returns
INode
A (of any type) with the specified local
name and namespace URI, or if they do not
identify any node in this map.
|
Item(Int32)
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
INode Item(int index)
Parameters
System.Int32
index
|
Returns
INode
The node at the th position in the map, or
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
INode RemoveNamedItem(string name)
Parameters
System.String
name
|
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 in
this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. |
RemoveNamedItemNS(String, String)
Declaration
INode RemoveNamedItemNS(string namespaceUri, string localName)
Parameters
System.String
namespaceUri
|
System.String
localName
|
Returns
INode
|