Text class

Inheritance
Implemented by
Annotations
  • @DomName('Text')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

Text(String data)
factory
Text.internal_()

Properties

assignedSlotSlotElement
@DocsEditable(), @DomName('Text.assignedSlot'), @Experimental(), read-only
wholeTextString
@DocsEditable(), @DomName('Text.wholeText'), read-only
baseUriString
@DocsEditable(), @DomName('Node.baseURI'), read-only, inherited
childNodesList<Node>
@DocsEditable(), @DomName('Node.childNodes'), read-only, inherited

A list of this node's children.

dataString
@DocsEditable(), @DomName('CharacterData.data'), read / write, inherited
firstChildNode
@DocsEditable(), @DomName('Node.firstChild'), read-only, inherited

The first child of this node.

hashCodeint
read-only, inherited
lastChildNode
@DocsEditable(), @DomName('Node.lastChild'), read-only, inherited

The last child of this node.

lengthint
@DocsEditable(), @DomName('CharacterData.length'), read-only, inherited
nextElementSiblingElement
@DocsEditable(), @DomName('CharacterData.nextElementSibling'), read-only, inherited
nextNodeNode
@DocsEditable(), @DomName('Node.nextSibling'), read-only, inherited

The next sibling node.

nodeNameString
@DocsEditable(), @DomName('Node.nodeName'), read-only, inherited

The name of this node.

nodesList<Node>
read / write, inherited

A modifiable list of this node's children.

nodeTypeint
@DocsEditable(), @DomName('Node.nodeType'), read-only, inherited

The type of node.

nodeValueString
@DocsEditable(), @DomName('Node.nodeValue'), read-only, inherited

The value of this node.

onEvents
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

ownerDocumentDocument
@DocsEditable(), @DomName('Node.ownerDocument'), read-only, inherited

The document this node belongs to.

parentElement
@DocsEditable(), @DomName('Node.parentElement'), read-only, inherited

The parent element of this node.

parentNodeNode
@DocsEditable(), @DomName('Node.parentNode'), read-only, inherited

The parent node of this node.

previousElementSiblingElement
@DocsEditable(), @DomName('CharacterData.previousElementSibling'), read-only, inherited
previousNodeNode
@DocsEditable(), @DomName('Node.previousSibling'), read-only, inherited

The previous sibling node.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

textString
@DocsEditable(), @DomName('Node.textContent'), read / write, inherited

All text within this node and its descendents.

treeRootNode
@DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only, inherited

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

getDestinationInsertionPoints() → List<Node>
@DocsEditable(), @DomName('Text.getDestinationInsertionPoints'), @Experimental()
splitText(int offset) → Text
@DocsEditable(), @DomName('Text.splitText')
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
append(Node node) → Node
@DocsEditable(), @DomName('Node.appendChild'), inherited

Adds a node to the end of the child nodes list of this node.

appendData(String data) → void
@DocsEditable(), @DomName('CharacterData.appendData'), inherited
clone(bool deep) → Node
@DocsEditable(), @DomName('Node.cloneNode'), inherited

Returns a copy of this node.

contains(Node other) → bool
@DocsEditable(), @DomName('Node.contains'), inherited

Returns true if this node contains the specified node.

deleteData(int offset, int count) → void
@DocsEditable(), @DomName('CharacterData.deleteData'), inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
hasChildNodes() → bool
@DocsEditable(), @DomName('Node.hasChildNodes'), inherited

Returns true if this node has any children.

insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited

Inserts all of the nodes into this node directly before refChild.

insertBefore(Node node, Node child) → Node
@DocsEditable(), @DomName('Node.insertBefore'), inherited

Inserts all of the nodes into this node directly before refChild.

insertData(int offset, String data) → void
@DocsEditable(), @DomName('CharacterData.insertData'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

remove() → void
@DomName('Node.removeChild'), inherited

Removes this node from the DOM.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
replaceData(int offset, int count, String data) → void
@DocsEditable(), @DomName('CharacterData.replaceData'), inherited
replaceWith(Node otherNode) → Node
@DomName('Node.replaceChild'), inherited

Replaces this node with another node.

substringData(int offset, int count) → String
@DocsEditable(), @DomName('CharacterData.substringData'), inherited
toString() → String
inherited

Print out a String representation of this Node.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Text-class.html