RichTextBox for WinRT
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
'Usage
 
Dim range As C1TextRange
Dim text As System.String
Dim styledRun As C1Run
Dim value As C1TextRange
 
value = EditExtensions.ReplaceText(range, text, styledRun)
[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.
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

EditExtensions Class
EditExtensions Members
Overload List

 

 


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

Product Support Forum  |  Documentation Feedback