Enum TextCapsType
TextCapsType enumeration
This type specifies the cap types of the text.
public enum TextCapsType
Values
Name | Value | Description |
---|---|---|
None | 0 | None caps |
All | 1 | Apply all caps on the text. |
Small | 2 | Apply small caps to the text. |
Examples
[C#]
namespace Demos
{
using Aspose.Cells;
using System;
public class TextCapsTypeDemo
{
public static void TextCapsTypeExample()
{
// Additional code to demonstrate how the instance might be used
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Set a cell's value
Cell cell = worksheet.Cells["A1"];
cell.PutValue("Hello Aspose!");
// Get the cell's style
Style style = cell.GetStyle();
// Set the font caps type to All Caps
style.Font.CapsType = Aspose.Cells.TextCapsType.All;
// Apply the style to the cell
cell.SetStyle(style);
// Save the workbook
workbook.Save("TextCapsTypeExample.xlsx");
return;
}
}
}
See Also
- namespace Aspose.Cells
- assembly Aspose.Cells