Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextHyphenationLexicon

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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} requiredposition: 0
breakMarker System.Char = '-' optionalposition: 1
minimumPrefixLength System.Int32 = 2 optionalposition: 2
minimumSuffixLength System.Int32 = 2 optionalposition: 3

Methods

public OfficeTextHyphenationCallback AsCallback() #
Returns: OfficeTextHyphenationCallback

Creates the callback shape consumed by renderer options.

public Boolean Contains(String token) #
Returns: Boolean

Returns true when the normalized word is present.

Parameters

token System.String requiredposition: 0
public IReadOnlyList<Int32> GetBreakpoints(String token) #
Returns: IReadOnlyList<Int32>

Returns preferred UTF-16 break positions for a word.

Parameters

token System.String requiredposition: 0

Properties

public Char BreakMarker { get; } #

Marker removed from source entries.

public Int32 MinimumPrefixLength { get; } #

Minimum UTF-16 length retained before a break.

public Int32 MinimumSuffixLength { get; } #

Minimum UTF-16 length retained after a break.

public Int32 Count { get; } #

Number of normalized words in the dictionary.