CapitalizationSettings Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
Determines the settings used with the Selection.ChangeCapitalization method. The enumeration contains the following values:
Syntax
public enum CapitalizationSettingsPublic Enum CapitalizationSettingsMembers
| Member | Value | Description |
|---|---|---|
| CapitalizeEachSentence | 4 | The first letter of each sentence is capitalized. |
| CapitalizeEachWord | 3 | The first letter of each word is capitalized. |
| ToLower | 2 | All letters are changed to lowercase. |
| ToUpper | 1 | All letters are changed to uppercase. |
| ToggleCase | 5 | Lowercase 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}");Dim value As CapitalizationSettings = CapitalizationSettings.ToUpper
Console.WriteLine($"Using Capitalization Settings: {value}")