ParagraphFormatLinesToDrop Property |
Namespace: Aspose.Words
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Setting this attribute will designate the current paragraph as a drop cap, // in this case with a height of 4 lines of text builder.ParagraphFormat.LinesToDrop = 4; builder.Write("H"); // Any subsequent paragraphs will wrap around the drop cap builder.InsertParagraph(); builder.Write("ello world."); doc.Save(ArtifactsDir + "Paragraph.LinesToDrop.odt");