XmlText.SplitText Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Splits the node into two nodes at the specified offset, keeping both in the tree as siblings.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public virtual XmlText SplitText(
	int offset


Type: System.Int32

The offset at which to split the node.

Return Value

Type: System.Xml.XmlText

The new node.

After SplitText is called, the original node contains all the content up to the offset point. A new node of the same type contains all the content at and after the offset point and is inserted as the next sibling of the original node. When the offset is equal to the length of this node, the new node has no data.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top