ComponentOne RichTextBox for WPF and Silverlight
Split(Int32) Method

C1.Silverlight.RichTextBox.Documents Namespace > C1TextElement Class > Split Method : Split(Int32) Method
The offset where to split, elements in positions greater or equal to the offset are added to the second element.
Splits this C1TextElement at the specified offset into two elements of the same type with the same style properties.
Syntax
'Declaration
 
Public Overloads Function Split( _
   ByVal offset As System.Integer _
) As C1TextPointer
public C1TextPointer Split( 
   System.int offset
)

Parameters

offset
The offset where to split, elements in positions greater or equal to the offset are added to the second element.

Return Value

Returns the position in the parent element between this element and the new element.
Exceptions
ExceptionDescription
this element has no parent.
See Also

Reference

C1TextElement Class
C1TextElement Members
Overload List