Provides the engine with any helpful text around the text snippet which will be passed to the Check method. Implementation is not required.
|C#||Visual Basic||Visual C++||F#|
void SetOptionalContext( string beforeToCheckSnippet, string afterToCheckSnippet )
Sub SetOptionalContext ( beforeToCheckSnippet As String, afterToCheckSnippet As String )
void SetOptionalContext( String^ beforeToCheckSnippet, String^ afterToCheckSnippet )
abstract SetOptionalContext : beforeToCheckSnippet : string * afterToCheckSnippet : string -> unit
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: Keyoti3.RapidSpell.WPF (Module: Keyoti3.RapidSpell.WPF.dll) Version: 184.108.40.2067