[]
        
(Showing Draft Content)

C1.WPF.SpellChecker.CharRange.ExpandOverWhitespace

ExpandOverWhitespace Method

ExpandOverWhitespace(string, CharRange)

Extends a CharRange over whitespace.

Declaration
public static CharRange ExpandOverWhitespace(string text, CharRange error)
Parameters
Type Name Description
string text

String that contains the CharRange.

CharRange error

CharRange that will be expanded.

Returns
Type Description
CharRange

Expanded CharRange.

Remarks
<p>The method returns a new <xref href="C1.WPF.SpellChecker.CharRange" data-throw-if-not-resolved="false"></xref> object that includes the original <code class="paramref">error</code>

plus any whitespace that immediately follows it. If there is no whitespace after the original error, then the returned value is extended to include any whitespace that precedes the original error.

This method is used to extend editor selections before deleting duplicate words.