Type Default Read Only Description

[Visual Basic]
0 No The first line of paragraph indent.




This property determines the horizontal indent applied to the first line of every paragraph.

If the indent is positive the start of the first line is shifted to the right by the specified number of points. If the indent is negative it is shifted to the left by the specified number of units.




In this example we add a block of text to a document. We specify a ParaSpacing value to space out the paragraphs and an Indent value to indent the first line of each paragraph.


using (Doc doc = new Doc()) {   string theText = "Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt.";   theText = theText + theText;   theText = theText + "\r\n" + theText + "\r\n";   theText = theText + theText + theText + theText;   doc.Rect.Inset(20, 40);   doc.TextStyle.Size = 16;   doc.TextStyle.ParaSpacing = 16;   doc.TextStyle.Indent = 48;   doc.AddText(theText);   doc.Save(Server.MapPath("styleindent.pdf")); }