Back to Devexpress

ParagraphPropertiesBase.FirstLineIndent Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-d2aea519.md

latest5.7 KB
Original Source

ParagraphPropertiesBase.FirstLineIndent Property

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

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
float? FirstLineIndent { get; set; }
vb
Property FirstLineIndent As Single?

Property Value

TypeDescription
Nullable<Single>

A Single value specifying the indent of the first line measured in Document.Unit units or null ( Nothing in Visual Basic), for a mixture of paragraphs with different indents.

|

Remarks

If the FirstLineIndentType is set to ParagraphFirstLineIndent.None, the FirstLineIndent property has no effect.

The following code snippets (auto-collected from DevExpress Examples) contain references 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-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L139

csharp
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
annotationStyle.FirstLineIndent = 3;
document.ParagraphStyles.Add(annotationStyle);

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

csharp
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;
level.Start = 1;

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

csharp
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
level.ParagraphProperties.FirstLineIndent = 75;
level.Start = 1;

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

vb
level.ParagraphProperties.FirstLineIndentType = DevExpress.XtraRichEdit.API.Native.ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
level.Start = 1

winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L131

vb
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
annotationStyle.FirstLineIndent = 3
document.ParagraphStyles.Add(annotationStyle)

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

vb
level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
level.Start = 1

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

vb
level.ParagraphProperties.FirstLineIndentType = DevExpress.XtraRichEdit.API.Native.ParagraphFirstLineIndent.Hanging
level.ParagraphProperties.FirstLineIndent = 75
level.Start = 1

See Also

FirstLineIndentType

BeginUpdateParagraphs(DocumentRange)

EndUpdateParagraphs(ParagraphProperties)

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace