Back to Devexpress

ParagraphPropertiesBase.FirstLineIndentType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-073efd9a.md

latest6.3 KB
Original Source

ParagraphPropertiesBase.FirstLineIndentType Property

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

Declaration

csharp
ParagraphFirstLineIndent? FirstLineIndentType { get; set; }
vb
Property FirstLineIndentType As ParagraphFirstLineIndent?

Property Value

TypeDescription
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:

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

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

csharp
annotationStyle.LineSpacingMultiplier = 1.5f;
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
annotationStyle.FirstLineIndent = 3;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/List.cs#L57

csharp
level.ParagraphProperties.LeftIndent = 150;
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ListActions.cs#L58

csharp
level.ParagraphProperties.LeftIndent = 150;
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/List.vb#L46

vb
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

vb
annotationStyle.LineSpacingMultiplier = 1.5F
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
annotationStyle.FirstLineIndent = 3

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ListActions.vb#L54

vb
level.ParagraphProperties.LeftIndent = 150
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75

word-document-api-examples/VB/CodeExamples/ListsActions.vb#L65

vb
level.ParagraphProperties.LeftIndent = 150
level.ParagraphProperties.FirstLineIndentType = DevExpress.XtraRichEdit.API.Native.ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75

See Also

FirstLineIndent

BeginUpdateParagraphs(DocumentRange)

EndUpdateParagraphs(ParagraphProperties)

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace