FontAllCaps Property |
Namespace: Aspose.Words
// 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);