RichTextBox for WPF | ComponentOne
C1.WPF.RichTextBox Namespace / EditExtensions Class / ReplaceText Method / ReplaceText(C1TextRange,String,C1Run) Method
A C1.WPF.RichTextBox.Documents.C1TextRange.
A string with the text to insert.
A pre styled C1.WPF.RichTextBox.Documents.C1Run to use when inserting the text. May be null.

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

    Parameters

    range
    A C1.WPF.RichTextBox.Documents.C1TextRange.
    text
    A string with the text to insert.
    styledRun
    A pre styled C1.WPF.RichTextBox.Documents.C1Run to use when inserting the text. May be null.

    Return Value

    A range that bounds the inserted text.
    See Also