Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextCaseTransformer

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Applies reusable, culture-aware text casing without depending on a document format.

Inheritance

  • object
  • OfficeTextCaseTransformer

Methods

public static string Apply(string text, OfficeTextCase textCase, CultureInfo? culture = null) #

Applies the requested casing transformation.

Parameters

text string required
Text to transform.
textCase OfficeIMO.Drawing.OfficeTextCase required
Transformation to apply.
culture System.Globalization.CultureInfo? = null optional
Culture used for casing. The current culture is used when omitted.

Returns

string The transformed text.
public static IReadOnlyList<string> ApplySegments(IReadOnlyList<string> segments, OfficeTextCase textCase, CultureInfo? culture = null) #

Applies one casing transformation across adjacent text segments, then redistributes the result without resetting sentence or word context at formatting boundaries.

Parameters

segments System.Collections.Generic.IReadOnlyList<string> required
textCase OfficeIMO.Drawing.OfficeTextCase required
culture System.Globalization.CultureInfo? = null optional

Returns

IReadOnlyList<string>