TX Text Control .NET for Windows Forms

CapitalizationSettings Enumeration

Enumeration|Introduced in 30.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

Determines the settings used with the Selection.ChangeCapitalization method. The enumeration contains the following values:

Syntax

public enum CapitalizationSettings

Members

MemberValueDescription
CapitalizeEachSentence4The first letter of each sentence is capitalized.
CapitalizeEachWord3The first letter of each word is capitalized.
ToLower2All letters are changed to lowercase.
ToUpper1All letters are changed to uppercase.
ToggleCase5Lowercase letters are changed to uppercase and vice versa.

Examples

The following example selects the To Upper value from the Capitalization Settings enumeration and uses it as a documented workflow choice.

CapitalizationSettings value = CapitalizationSettings.ToUpper;
Console.WriteLine($"Using Capitalization Settings: {value}");