[All Packages]  [This Package]  [Previous Class]

Class: Text

This class contains methods for accessing and modifying the data associated with text nodes (subclasses CharacterData).


Method Index

splitText Get data (value) of a text node

Methods

splitText

Function:
Split a text node in two. The original node retains its data up to the split point, and the remaining data is turned into a new text node which follows.

Prototype:
Text* splitText(unsigned long offset)

Arguments:
offset -- split point

Returns:
Text* -- Pointer to new text node