Back to Devexpress

Paragraph.FirstLineIndentType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraph-aea3eec2.md

latest3.9 KB
Original Source

Paragraph.FirstLineIndentType Property

Gets or sets a value specifying whether and how the first line in a paragraph is indented.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public abstract ParagraphFirstLineIndent FirstLineIndentType { get; set; }
vb
Public MustOverride Property FirstLineIndentType As ParagraphFirstLineIndent

Property Value

TypeDescription
ParagraphFirstLineIndent

A ParagraphFirstLineIndent enumeration value, which specifies the first line’s indent.

|

Available values:

NameDescription
None

The first line of a paragraph doesn’t have any indent.

| | Indented |

The first line of a paragraph is indented to the right by the value specified by the Paragraph.FirstLineIndent property.

| | Hanging |

The first line of a paragraph is indented to the left, by the value specified by the Paragraph.FirstLineIndent property.

|

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FirstLineIndentType 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#L41

csharp
richEditControl1.Document.Paragraphs[0].LeftIndent = Units.InchesToDocumentsF(0.5f);
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#L40

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

See Also

FirstLineIndent

Paragraph Class

Paragraph Members

DevExpress.XtraRichEdit.API.Native Namespace