Click or drag to resize
ICharacterData Interface

Namespace: Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom
Assembly: Telerik.Windows.Documents.FormatProviders.Html (in Telerik.Windows.Documents.FormatProviders.Html.dll) Version: 2014.3.1202.1050 (2014.3.1202.1050)
Syntax
public interface ICharacterData : INode

The ICharacterData type exposes the following members.

Methods
  NameDescription
Public methodAppendChild
Adds the node
newChild
to the end of the list of children of this node. If the
newChild
is already in the tree, it is first removed.
(Inherited from INode.)
Public methodAppendData
Append the string to the end of the character data of the node. Upon success,
data
provides access to the concatenation of
data
and the
DOMString
specified.
Public methodCloneNode (Inherited from INode.)
Public methodDeleteData
Remove a range of 16-bit units from the node. Upon success,
data
and
length
reflect the change.
Public methodHasAttributes
Returns whether this node (if it is an element) has any attributes.
(Inherited from INode.)
Public methodHasChildNodes
Returns whether this node has any children.
(Inherited from INode.)
Public methodInsertBefore
Inserts the node
newChild
before the existing child node
refChild
. If
refChild
is
null
, insert
newChild
at the end of the list of children.
If
newChild
is a
DocumentFragment
object, all of its children are inserted, in the same order, before
refChild
. If the
newChild
is already in the tree, it is first removed.
(Inherited from INode.)
Public methodInsertData
Public methodIsSupported
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
(Inherited from INode.)
Public methodNormalize
Puts all
Text
nodes in the full depth of the sub-tree underneath this
Node
, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates
Text
nodes, i.e., there are neither adjacent
Text
nodes nor empty
Text
nodes. This can be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when operations (such as XPointer lookups) that depend on a particular document tree structure are to be used.In cases where the document contains
CDATASections
, the normalize operation alone may not be sufficient, since XPointers do not differentiate between
Text
nodes and
CDATASection
nodes.
(Inherited from INode.)
Public methodRemoveChild
Removes the child node indicated by
oldChild
from the list of children, and returns it.
(Inherited from INode.)
Public methodReplaceChild (Inherited from INode.)
Public methodReplaceData
Replace the characters starting at the specified 16-bit unit offset with the specified string.
Public methodSubstringData
Extracts a range of data from the node.
Top
Properties
  NameDescription
Public propertyAttributes
A
NamedNodeMap
containing the attributes of this node (if it is an
Element
) or
null
otherwise.
(Inherited from INode.)
Public propertyChildNodes
A
NodeList
that contains all children of this node. If there are no children, this is a
NodeList
containing no nodes.
(Inherited from INode.)
Public propertyData
The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a
CharacterData
node. However, implementation limits may mean that the entirety of a node's data may not fit into a single
DOMString
. In such cases, the user may call
substringData
to retrieve the data in appropriately sized pieces.
Public propertyFirstChild
The first child of this node. If there is no such node, this returns
null
.
(Inherited from INode.)
Public propertyLastChild
The last child of this node. If there is no such node, this returns
null
.
(Inherited from INode.)
Public propertyLength
The number of 16-bit units that are available through
data
and the
substringData
method below. This may have the value zero, i.e.,
CharacterData
nodes may be empty.
Public propertyLocalName (Inherited from INode.)
Public propertyNamespaceURI (Inherited from INode.)
Public propertyNextSibling
The node immediately following this node. If there is no such node, this returns
null
.
(Inherited from INode.)
Public propertyNodeName
The name of this node, depending on its type; see the table above.
(Inherited from INode.)
Public propertyNodeType
A code representing the type of the underlying object, as defined above.
(Inherited from INode.)
Public propertyNodeValue
The value of this node, depending on its type; see the table above. When it is defined to be
null
, setting it has no effect.
(Inherited from INode.)
Public propertyOwnerDocument
The
Document
object associated with this node. This is also the
Document
object used to create new nodes. When this node is a
Document
or a
DocumentType
which is not used with any
Document
yet, this is
null
.
(Inherited from INode.)
Public propertyParentNode
The parent of this node. All nodes, except
Attr
,
Document
,
DocumentFragment
,
Entity
, and
Notation
may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is
null
.
(Inherited from INode.)
Public propertyPrefix (Inherited from INode.)
Public propertyPreviousSibling
The node immediately preceding this node. If there is no such node, this returns
null
.
(Inherited from INode.)
Top
See Also