Version

CheckHyphenatedText Property

Gets or sets whether to look for each part of a hyphenated word in the dictionary, or to look for the hyphenated word as a whole in the dictionary. If set to true, “hello-world” would be spelled correctly, otherwise it would be incorrect.
Syntax
'Declaration
 
Public Property CheckHyphenatedText As Boolean
public bool CheckHyphenatedText {get; set;}
Remarks
This seems very similar to SeparateHyphenWords, but when this property is either true or false, the entire hyphenated word is marked in error if any part is in error. This is not the case with SeparateHyphenWords.
Example
This sample shows how to adjust the spell checker settings to make it function in a particular way.

Imports Infragistics.Win.UltraWinSpellChecker

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

	'Ignore words with all capital letters
	Me.spellChecker.SpellOptions.AllowCapitalizedWords = True

	'Do not convert misspelled words to all lowercase before looking for suggestions.
	'Me could cause "hEelo" and "heElo" to have different suggestions.
	Me.spellChecker.SpellOptions.AllowCaseInsensitiveSuggestions = False

	'Allow words with mixed case ("tHe" will not be a spelling mistake).
	Me.spellChecker.SpellOptions.AllowMixedCase = True

	'Any words with digits in them will be ignored
	'("th4e" will not be a spelling mistake).
	Me.spellChecker.SpellOptions.AllowWordsWithDigits = True

	'Words between '<' and '>' will be spell checked.
	Me.spellChecker.SpellOptions.AllowXml = False

	'Allow compound words ("helloworld" is not a spelling mistake).
	Me.spellChecker.SpellOptions.CheckCompoundWords = True

	'Search for entire hyphenated words in the dictionary, not the separate parts.
	'Me causes "hello-world" to be a spelling error.
	'* - To see the effect of Me, SeparateHyphenWords below must be set to False
	Me.spellChecker.SpellOptions.CheckHyphenatedText = False

	'Decrease the consideration range for suggestions.  Me will
	'increase performance, but less suggestions will be found for errors.
	Me.spellChecker.SpellOptions.ConsiderationRange = 5

	'Don't include words from the user dictionary in te list of suggestions
	Me.spellChecker.SpellOptions.IncludeUserDictionaryInSuggestions = False

	'Use french grammar rules to aid the spell checker in reading the text
	Me.spellChecker.SpellOptions.LanguageParser = LanguageType.French

	'When a hyphated word is mispelled, only underline the part of the hyphenated 
	'word that is incorrect ("heelo-world" will only have "heelo" underlined).
	Me.spellChecker.SpellOptions.SeparateHyphenWords = True

	'When an error is detected to be two combined words, the minimum length 
	'of the suggested split words is four.  "myhouse" would not have "my house" as a suggestion.
	'* - SuggestSplitWords must be True and CheckCompoundWords must be False for Me property to take effect
	Me.spellChecker.SpellOptions.SplitWordThreshold = 4

	'Use phonetic suggestions for errors
	Me.spellChecker.SpellOptions.SuggestionMethod = SuggestionsMethod.PHONETIC_SUGGESTIONS

	'Don't suggest split words when an error is determined to be a 
	'compound of two correctly spelled word.
	Me.spellChecker.SpellOptions.SuggestSplitWords = False

End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

private void Form1_Load( object sender, EventArgs e )
{
	//Ignore words with all capital letters
	this.spellChecker.SpellOptions.AllowCapitalizedWords = true;

	//Do not convert misspelled words to all lowercase before looking for suggestions.
	//This could cause "hEelo" and "heElo" to have different suggestions.
	this.spellChecker.SpellOptions.AllowCaseInsensitiveSuggestions = false;

	//Allow words with mixed case ("tHe" will not be a spelling mistake).
	this.spellChecker.SpellOptions.AllowMixedCase = true;

	//Any words with digits in them will be ignored
	//("th4e" will not be a spelling mistake).
	this.spellChecker.SpellOptions.AllowWordsWithDigits = true;

	//Words between '<' and '>' will be spell checked.
	this.spellChecker.SpellOptions.AllowXml = false;

	//Allow compound words ("helloworld" is not a spelling mistake).
	this.spellChecker.SpellOptions.CheckCompoundWords = true;

	//Search for entire hyphenated words in the dictionary, not the separate parts.
	//This causes "hello-world" to be a spelling error.
	//* - To see the effect of this, SeparateHyphenWords below must be set to False
	this.spellChecker.SpellOptions.CheckHyphenatedText = false;

	//Decrease the consideration range for suggestions.  This will
	//increase performance, but less suggestions will be found for errors.
	this.spellChecker.SpellOptions.ConsiderationRange = 5;

	//Don't include words from the user dictionary in te list of suggestions
	this.spellChecker.SpellOptions.IncludeUserDictionaryInSuggestions = false;

	//Use french grammar rules to aid the spell checker in reading the text
	this.spellChecker.SpellOptions.LanguageParser = LanguageType.French;

	//When a hyphated word is mispelled, only underline the part of the hyphenated 
	//word that is incorrect ("heelo-world" will only have "heelo" underlined).
	this.spellChecker.SpellOptions.SeparateHyphenWords = true;

	//When an error is detected to be two combined words, the minimum length 
	//of the suggested split words is four.  "myhouse" would not have "my house" as a suggestion.
	//* - SuggestSplitWords must be True and CheckCompoundWords must be False for this property to take effect
	this.spellChecker.SpellOptions.SplitWordThreshold = 4;

	//Use phonetic suggestions for errors
	this.spellChecker.SpellOptions.SuggestionMethod = SuggestionsMethod.PHONETIC_SUGGESTIONS;

	//Don't suggest split words when an error is determined to be a 
	//compound of two correctly spelled word.
	this.spellChecker.SpellOptions.SuggestSplitWords = false;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also