[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.EditExtensions.ReplaceText

ReplaceText Method

ReplaceText(C1TextRange, string, C1Run)

Replaces a range with text.

Declaration
[Obsolete("Use the overload without the styledRun parameter")]
public static C1TextRange ReplaceText(C1TextRange range, string text, C1Run styledRun)
Parameters
Type Name Description
C1TextRange range

A C1TextRange.

string text

A string with the text to insert.

C1Run styledRun

A pre styled C1Run to use when inserting the text. May be null.

Returns
Type Description
C1TextRange

A range that bounds the inserted text.

ReplaceText(C1TextRange, string)

Replaces a range with text.

Declaration
public static C1TextRange ReplaceText(C1TextRange range, string text)
Parameters
Type Name Description
C1TextRange range

A C1TextRange.

string text

A string with the text to insert.

Returns
Type Description
C1TextRange

A range that bounds the inserted text.