RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox Namespace / EditExtensions Class / ReplaceText Method / ReplaceText(C1TextRange,String) Method
A C1.WPF.RichTextBox.Documents.C1TextRange.
A string with the text to insert.

In This Topic
    ReplaceText(C1TextRange,String) Method
    In This Topic
    Replaces a range with text.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ReplaceText( _
       ByVal range As C1TextRange, _
       ByVal text As String _
    ) As C1TextRange
    public static C1TextRange ReplaceText( 
       C1TextRange range,
       string text
    )

    Parameters

    range
    A C1.WPF.RichTextBox.Documents.C1TextRange.
    text
    A string with the text to insert.

    Return Value

    A range that bounds the inserted text.
    See Also