Splits this C1TextElement at the specified offset into two elements of the same type with the same style properties.

Namespace:  C1.Phone.RichTextBox.Documents
Assembly:  C1.Phone.RichTextBox (in C1.Phone.RichTextBox.dll)

Syntax

C#
public virtual C1TextPointer Split(
	int offset,
	bool splitEdges
)
Visual Basic
Public Overridable Function Split ( _
	offset As Integer, _
	splitEdges As Boolean _
) As C1TextPointer

Parameters

offset
Type: System..::..Int32
The offset where to split, elements in positions greater or equal to the offset are added to the second element.
splitEdges
Type: System..::..Boolean
Indicates whether the element should be split when the position is at the start or end of the element.

Return Value

Returns the position in the parent element between this element and the new element.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionthis element has no parent.

See Also