API Reference
Class
OfficeTextHyphenationLexicon
Immutable, dependency-free dictionary of explicit word hyphenation points shared by OfficeIMO renderers.
Inheritance
- Object
- OfficeTextHyphenationLexicon
Constructors
public OfficeTextHyphenationLexicon(IEnumerable<String> hyphenatedWords, Char breakMarker = '-', Int32 minimumPrefixLength = 2, Int32 minimumSuffixLength = 2) #Creates a case-insensitive dictionary from words such as typog-ra-phy.
Parameters
- hyphenatedWords System.Collections.Generic.IEnumerable<System.String>
- breakMarker System.Char = '-'
- minimumPrefixLength System.Int32 = 2
- minimumSuffixLength System.Int32 = 2
Methods
public OfficeTextHyphenationCallback AsCallback() #Returns:
OfficeTextHyphenationCallbackCreates the callback shape consumed by renderer options.
public Boolean Contains(String token) #Returns:
BooleanReturns true when the normalized word is present.
Parameters
- token System.String
public IReadOnlyList<Int32> GetBreakpoints(String token) #Returns:
IReadOnlyList<Int32>Returns preferred UTF-16 break positions for a word.
Parameters
- token System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?