ParagraphFormatLinesToDrop Property

Gets or sets the number of lines of the paragraph text used to calculate the drop cap height.

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

Property Value

Type: Int32
Examples
Shows how to set the size of the drop cap text.
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");
See Also