User Tools

Site Tools


DzDomText

Represents Document Object Model (DOM) “Text”.

More...

Inherits :

Inherited By : DzDomCDATASection

Methods

DAZ Script
DzDomNodesplitText ( Number offset )

Detailed Description

A script wrapper for QDomText. This object represents “Text” data in a DOM document.

Instances of this object are not constructed directly, rather they are returned by calling DzDomDocument::createTextNode().

Methods


DzDomNode : splitText( Number offset )

Splits this text node into two text nodes. This node keeps the first part of the split and the remaining characters are inserted into the document tree as another DzDomText object, after this object.

Parameter(s):

  • offset - The position within this node's text to split at.

Return Value:

  • The newly created DzDomText object with the characters in the latter part of the split (if any), otherwise a DzDomBasicNode.