Freigeben über


WordSplitBehavior Enumeration

Behavior to use while splitting words in string differencing.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Enumeration WordSplitBehavior
public enum WordSplitBehavior
public enum class WordSplitBehavior
type WordSplitBehavior
public enum WordSplitBehavior

Members

Member name Description
CharacterClass Split words by character class.
Default Split words by CharacterClass.
LanguageAppropriate Split the text into language-appropriate words.When used in conjunction with the default T[:Microsoft.VisualStudio.Text.Differencing.IHierarchicalStringDifferenceService], this value is the same as WhiteSpaceAndPunctuation. When used in conjunction with an ITextDifferencingService, the behavior is controlled by the implementation.
WhiteSpace Split the text into words by whitespace only.
WhiteSpaceAndPunctuation Split the text into words by whitespace and punctuation/symbols.

Remarks

Word split logic uses the following character classes: 1) whitespace and control characters, 2) numbers/digits, 3) punctuation/symbols, 4) letters.

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace