# OfficeTextCase

Defines culture-aware transformations that change stored text casing.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextCase.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L9)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Defines culture-aware transformations that change stored text casing.

## Inheritance

- Enum
- OfficeTextCase

## Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 7

- Field [OfficeTextCase.Capitalize](/api/core/officeimo-drawing-officetextcase/#field-capitalize)
- Field [OfficeTextCase.Lowercase](/api/core/officeimo-drawing-officetextcase/#field-lowercase)
- Field [OfficeTextCase.None](/api/core/officeimo-drawing-officetextcase/#field-none)
- Field [OfficeTextCase.SentenceCase](/api/core/officeimo-drawing-officetextcase/#field-sentencecase)
- Field [OfficeTextCase.TitleCase](/api/core/officeimo-drawing-officetextcase/#field-titlecase)
- Field [OfficeTextCase.ToggleCase](/api/core/officeimo-drawing-officetextcase/#field-togglecase)
- Field [OfficeTextCase.Uppercase](/api/core/officeimo-drawing-officetextcase/#field-uppercase)

### Accepted by parameters 4

- Method [OfficeMathExpression.TransformTextCase](/api/core/officeimo-drawing-officemathexpression/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo) parameter `textCase`
- Method [OfficeRichTextRun.WithTextCase](/api/core/officeimo-drawing-officerichtextrun/#method-withtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo) parameter `textCase`
- Method [OfficeTextCaseTransformer.Apply](/api/core/officeimo-drawing-officetextcasetransformer/#method-apply-string-officeimo-drawing-officetextcase-globalization-cultureinfo) parameter `textCase`
- Method [OfficeTextCaseTransformer.ApplySegments](/api/core/officeimo-drawing-officetextcasetransformer/#method-applysegments-collections-generic-ireadonlylist-system-string-officeimo-drawing-officetextcase-globalization-cultureinfo) parameter `textCase`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeTextCase None` [#](#field-none)

[OfficeTextCase.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L11)

Preserves the text exactly as supplied.

Value: `0`

`public const OfficeTextCase Uppercase` [#](#field-uppercase)

[OfficeTextCase.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L14)

Converts all cased characters to uppercase.

Value: `1`

`public const OfficeTextCase Lowercase` [#](#field-lowercase)

[OfficeTextCase.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L17)

Converts all cased characters to lowercase.

Value: `2`

`public const OfficeTextCase TitleCase` [#](#field-titlecase)

[OfficeTextCase.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L20)

Capitalizes words using the selected culture.

Value: `3`

`public const OfficeTextCase SentenceCase` [#](#field-sentencecase)

[OfficeTextCase.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L23)

Lowercases text and capitalizes the first cased character of each sentence.

Value: `4`

`public const OfficeTextCase ToggleCase` [#](#field-togglecase)

[OfficeTextCase.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L26)

Converts lowercase characters to uppercase and uppercase characters to lowercase.

Value: `5`

`public const OfficeTextCase Capitalize` [#](#field-capitalize)

[OfficeTextCase.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextCase.cs#L29)

Uppercases the first cased character of each word while preserving the remaining characters.

Value: `6`

<!-- PowerForge markdown artifact sha256:58FDABDDA04B2BBFD609E75C973B72998FAB4AB31604017165724FF962F0D2C2 -->
