Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree as a sibling that immediately follows this node.
[Script]
Script Syntax
varobjXMLDOMText=oXMLDOMText.splitText(offset);
Script Parameters
- offset
Long integer. Number of characters at which to split this text node into two nodes, starting from zero.
Script Return Value
Object. Returns the new text node.
[C/C++]
C/C++ Syntax
HRESULT splitText(longoffset,IXMLDOMText** rightHandTextNode);
C/C++ Parameters
- offset
[in] Number of characters at which to split this text node into two nodes, starting from zero. - rightHandTextNode
[out, retval] New text node.
C/C++ Return Values
- S_OK
Value returned if successful. - S_FALSE
Value when returning Null. - E_FAIL
Value returned if an error occurs.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
General Remarks
If you specify an offset of zero, the first text node is empty and the right-hand text node contains the previous contents of the node. If you specify an offset beyond the end of the string, a new, empty right-hand text node is created.
This method applies to the following objects and interfaces:
IXMLDOMCDATASection and IXMLDOMText.
Send Feedback on this topic to the authors