Class
OfficeTextCaseTransformer
OfficeIMO.Drawing
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
- Text to transform.
- textCase OfficeIMO.Drawing.OfficeTextCase
- Transformation to apply.
- culture System.Globalization.CultureInfo? = null
- 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>
- textCase OfficeIMO.Drawing.OfficeTextCase
- culture System.Globalization.CultureInfo? = null
Returns
IReadOnlyList<string>