ComponentOne RichTextBox for UWP
ReplaceText(C1TextRange,String,C1Run) Method

C1.Xaml.RichTextBox Namespace > EditExtensions Class > ReplaceText Method : ReplaceText(C1TextRange,String,C1Run) Method
A C1.Xaml.RichTextBox.Documents.C1TextRange.
A string with the text to insert.
A pre styled C1.Xaml.RichTextBox.Documents.C1Run to use when inserting the text. May be null.
Replaces a range with text.
Syntax
'Declaration
 
<System.ObsoleteAttribute("Use the overload without the styledRun parameter")>
Public Overloads Shared Function ReplaceText( _
   ByVal range As C1TextRange, _
   ByVal text As System.String, _
   ByVal styledRun As C1Run _
) As C1TextRange
[System.Obsolete("Use the overload without the styledRun parameter")]
public static C1TextRange ReplaceText( 
   C1TextRange range,
   System.string text,
   C1Run styledRun
)

Parameters

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

Return Value

A range that bounds the inserted text.
See Also

Reference

EditExtensions Class
EditExtensions Members
Overload List