Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextHyphenationPatterns

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Resolves UTF-16 break positions using versioned US English and reformed German patterns.

Inheritance

  • Object
  • OfficeTextHyphenationPatterns

Remarks

Resources are embedded and loaded once per language. Unknown languages, non-word tokens and tokens longer than 512 UTF-16 code units return no automatic breaks. Leading/trailing punctuation is retained; normalization never changes the caller's text or splits a grapheme.

Methods

public static IReadOnlyList<Int32> GetBreakpoints(String token, String language) #
Returns: IReadOnlyList<Int32>

Returns optional breaks in the original token, preserving case, punctuation and Unicode normalization.

Parameters

token System.String requiredposition: 0
One token; embedded whitespace, digits and internal punctuation suppress automatic breaks.
language System.String requiredposition: 1
A supported language tag. An empty or unsupported tag produces no breaks.
public static Boolean SupportsLanguage(String language) #
Returns: Boolean

Tests whether the tag selects an embedded pattern resource.

Parameters

language System.String requiredposition: 0

Properties

public static IReadOnlyList<String> SupportedLanguages { get; } #

Canonical language tags for the embedded resources.