Capitals Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets values specifying wheather lowercase letters are displayed with capital letters. Lowercase letters are displayed either with capital letters of the same size or with capital letters which have a smaller size. The smaller size is either the size of the lowercase 'x' (petite caps) or the size of the lowercase 'x' + 10% (small caps).
Syntax
public Capitals Capitals { get; set; }Public Property Capitals As CapitalsMembers
| Value | Description |
|---|---|
| None | There are no text effects with capital letters. |
| Capitals | All lowercase letters are displayed with capital letters. |
| PetiteCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x'. |
| SmallCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x' + 10%. |
Examples
The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.Capitals.
FormattingStyle formattingStyle = new InlineStyle("Emphasis");
formattingStyle.Capitals = Capitals.Capitals;
Console.WriteLine($"Capitals used by Formatting Style: {formattingStyle.Capitals}");
textControl.InlineStyles.Add((InlineStyle)formattingStyle);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Capitals = Capitals.Capitals
Console.WriteLine($"Capitals used by Formatting Style: {formattingStyle.Capitals}")
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))