RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox Namespace / EditExtensions Class / InsertText Method
A C1.WPF.RichTextBox.Documents.C1TextPointer where to insert text.
Text to insert.

In This Topic
    InsertText Method (EditExtensions)
    In This Topic
    Inserts text in a document keeping the styles of previous runs in the same block.
    Syntax
    'Declaration
     
    
    Public Shared Function InsertText( _
       ByVal position As C1TextPointer, _
       ByVal text As String _
    ) As C1TextRange
    public static C1TextRange InsertText( 
       C1TextPointer position,
       string text
    )

    Parameters

    position
    A C1.WPF.RichTextBox.Documents.C1TextPointer where to insert text.
    text
    Text to insert.

    Return Value

    The start position of the inserted text.
    See Also