RichTextBox for WinRT
Split(Int32,Boolean) Method


The offset where to split, elements in positions greater or equal to the offset are added to the second element.
Indicates whether the element should be split when the position is at the start or end of the element.
Splits this C1TextElement at the specified offset into two elements of the same type with the same style properties.
Syntax
'Declaration
 
Public Overloads Overridable Function Split( _
   ByVal offset As System.Integer, _
   ByVal splitEdges As System.Boolean _
) As C1TextPointer
'Usage
 
Dim instance As C1TextElement
Dim offset As System.Integer
Dim splitEdges As System.Boolean
Dim value As C1TextPointer
 
value = instance.Split(offset, splitEdges)
public virtual C1TextPointer Split( 
   System.int offset,
   System.bool splitEdges
)

Parameters

offset
The offset where to split, elements in positions greater or equal to the offset are added to the second element.
splitEdges
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
ExceptionDescription
System.InvalidOperationExceptionthis element has no parent.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1TextElement Class
C1TextElement Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback