Back to Devexpress

Paragraph.FirstLineIndent Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraph-409826ce.md

latest3.2 KB
Original Source

Paragraph.FirstLineIndent Property

Gets or sets a value specifying the indent for the first line in a paragraph.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public abstract float FirstLineIndent { get; set; }
vb
Public MustOverride Property FirstLineIndent As Single

Property Value

TypeDescription
Single

A Single value specifying the indent for the first line, measured in Document.Unit units.

|

Remarks

If the Paragraph.FirstLineIndentType property is set to a value different from ParagraphFirstLineIndent.None, the indent value of a paragraph is specified by its FirstLineIndent property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FirstLineIndent property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-adjust-left-document-padding/CS/Form1.cs#L42

csharp
richEditControl1.Document.Paragraphs[0].FirstLineIndentType = ParagraphFirstLineIndent.Indented;
    richEditControl1.Document.Paragraphs[0].FirstLineIndent = Units.InchesToDocumentsF(0.5f);
}

winforms-richedit-adjust-left-document-padding/VB/Form1.vb#L41

vb
richEditControl1.Document.Paragraphs(0).FirstLineIndentType = ParagraphFirstLineIndent.Indented
    richEditControl1.Document.Paragraphs(0).FirstLineIndent = Units.InchesToDocumentsF(0.5F)
End Sub

See Also

FirstLineIndentType

Paragraph Class

Paragraph Members

DevExpress.XtraRichEdit.API.Native Namespace