Replaces a range with text.

Namespace:  C1.Phone.RichTextBox
Assembly:  C1.Phone.RichTextBox (in C1.Phone.RichTextBox.dll)

Syntax

C#
[ObsoleteAttribute("Use the overload without the styledRun parameter")]
public static C1TextRange ReplaceText(
	C1TextRange range,
	string text,
	C1Run styledRun
)
Visual Basic
<ObsoleteAttribute("Use the overload without the styledRun parameter")> _
Public Shared Function ReplaceText ( _
	range As C1TextRange, _
	text As String, _
	styledRun As C1Run _
) As C1TextRange

Parameters

range
Type: C1.Phone.RichTextBox.Documents..::..C1TextRange
A C1TextRange.
text
Type: System..::..String
A string with the text to insert.
styledRun
Type: C1.Phone.RichTextBox.Documents..::..C1Run
A pre styled C1Run to use when inserting the text. May be null.

Return Value

A range that bounds the inserted text.

See Also