officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraph-409826ce.md
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
public abstract float FirstLineIndent { get; set; }
Public MustOverride Property FirstLineIndent As Single
| Type | Description |
|---|---|
| Single |
A Single value specifying the indent for the first line, measured in Document.Unit units.
|
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
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
richEditControl1.Document.Paragraphs(0).FirstLineIndentType = ParagraphFirstLineIndent.Indented
richEditControl1.Document.Paragraphs(0).FirstLineIndent = Units.InchesToDocumentsF(0.5F)
End Sub
See Also