Class
OfficeTextHyphenationLexicon
OfficeIMO.Drawing
Immutable, dependency-free dictionary of explicit word hyphenation points shared by OfficeIMO renderers.
Inheritance
- object
- OfficeTextHyphenationLexicon
Constructors
public OfficeTextHyphenationLexicon(IEnumerable<string> hyphenatedWords, char breakMarker = '-', int minimumPrefixLength = 2, int minimumSuffixLength = 2) #Creates a case-insensitive dictionary from words such as typog-ra-phy.
Parameters
- hyphenatedWords System.Collections.Generic.IEnumerable<string>
- breakMarker char = '-'
- minimumPrefixLength int = 2
- minimumSuffixLength int = 2
Methods
public OfficeTextHyphenationCallback AsCallback() #Creates the callback shape consumed by renderer options.
public bool Contains(string token) #Returns true when the normalized word is present.
Parameters
- token string
Returns
boolpublic IReadOnlyList<int> GetBreakpoints(string token) #Returns preferred UTF-16 break positions for a word.
Parameters
- token string
Returns
IReadOnlyList<int>