Extends a CharRange over whitespace.

Namespace:  C1.Silverlight.SpellChecker
Assembly:  C1.Silverlight.SpellChecker (in C1.Silverlight.SpellChecker.dll)

Syntax

C#
public static CharRange ExpandOverWhitespace(
	string text,
	CharRange error
)
Visual Basic
Public Shared Function ExpandOverWhitespace ( _
	text As String, _
	error As CharRange _
) As CharRange

Parameters

text
Type: System..::..String
String that contains the CharRange.
error
Type: C1.Silverlight.SpellChecker..::..CharRange
CharRange that will be expanded.

Return Value

Expanded CharRange.

Remarks

The method returns a new CharRange object that includes the original error 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.

See Also