Keyoti RapidSpell Web .NET Help Docs
SetOptionalContext Method (beforeToCheckSnippet, afterToCheckSnippet)
API DocumentationKeyoti.RapidSpellRapidSpellCheckerSetOptionalContext(String, String)
Keyoti RapidSpell Web .NET
Provides the engine with any helpful text around the text snippet which will be passed to the Check method.
Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetOptionalContext(
	string beforeToCheckSnippet,
	string afterToCheckSnippet
)
Public Overridable Sub SetOptionalContext ( _
	beforeToCheckSnippet As String, _
	afterToCheckSnippet As String _
)
public:
virtual void SetOptionalContext(
	String^ beforeToCheckSnippet, 
	String^ afterToCheckSnippet
)
Parameters
beforeToCheckSnippet (String)
Any text before the to check snippet
afterToCheckSnippet (String)
Any text after the snippet
Remarks
Eg. if the document contains "This is an an example piece." and Check will be called on "an example piece", then the fact that 'an' is duplicated will not be detected. Therefore, by passing "This is an " to beforeToCheckSnippet the checker will be able to detect that an is duplicated.

Assembly: Keyoti.RapidSpellWeb (Module: Keyoti.RapidSpellWeb) Version: 3.7.10.625