officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-073efd9a.md
Gets or sets how a paragraph’s first line is indented.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
ParagraphFirstLineIndent? FirstLineIndentType { get; set; }
Property FirstLineIndentType As ParagraphFirstLineIndent?
| Type | Description |
|---|---|
| Nullable<ParagraphFirstLineIndent> |
A ParagraphFirstLineIndent enumeration value, specifying the first line indent or null ( Nothing in Visual Basic), for a mixture of paragraphs with different indent types.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
Use the FirstLineIndent property to specify the indent value.
The following code snippets (auto-collected from DevExpress Examples) contain references 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-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L138
annotationStyle.LineSpacingMultiplier = 1.5f;
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
annotationStyle.FirstLineIndent = 3;
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/List.cs#L57
level.ParagraphProperties.LeftIndent = 150;
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ListActions.cs#L58
level.ParagraphProperties.LeftIndent = 150;
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/List.vb#L46
level.ParagraphProperties.LeftIndent = 150
level.ParagraphProperties.FirstLineIndentType = DevExpress.XtraRichEdit.API.Native.ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L130
annotationStyle.LineSpacingMultiplier = 1.5F
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
annotationStyle.FirstLineIndent = 3
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ListActions.vb#L54
level.ParagraphProperties.LeftIndent = 150
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
word-document-api-examples/VB/CodeExamples/ListsActions.vb#L65
level.ParagraphProperties.LeftIndent = 150
level.ParagraphProperties.FirstLineIndentType = DevExpress.XtraRichEdit.API.Native.ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
See Also
BeginUpdateParagraphs(DocumentRange)
EndUpdateParagraphs(ParagraphProperties)
ParagraphPropertiesBase Interface