FontAllCaps Property

True if the font is formatted as all capital letters.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool AllCaps { get; set; }

Property Value

Type: Boolean
Examples
Shows how to use all capitals and small capitals character formatting properties.
// Create an empty document. It contains one empty paragraph
Document doc = new Document();

// Get the paragraph from the document, we will be adding runs of text to it
Paragraph para = (Paragraph) doc.GetChild(NodeType.Paragraph, 0, true);

Run run = new Run(doc, "All capitals");
run.Font.AllCaps = true;
para.AppendChild(run);

run = new Run(doc, "SMALL CAPITALS");
run.Font.SmallCaps = true;
para.AppendChild(run);
See Also