Back to Devexpress

ParagraphPropertiesBase.LeftIndent Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-46d9356f.md

latest5.4 KB
Original Source

ParagraphPropertiesBase.LeftIndent Property

Gets or sets a paragraph’s left indent.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
Nullable<Single>

The left indent measured in Document.Unit units or null ( Nothing in Visual Basic) for a mixture of paragraphs with different indents.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the LeftIndent 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-document-api/CS/RichEditAPISample/CodeExamples/List.cs#L24

csharp
ListLevel level = list.Levels[0];
level.ParagraphProperties.LeftIndent = 100;

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

csharp
ListLevel level = list.Levels[0];
level.ParagraphProperties.LeftIndent = 100;

winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L73

csharp
//Default unit is 1/300 of an inch (a document unit).
titleParagraphFormatting.LeftIndent = Units.InchesToDocumentsF(0.5f);
titleParagraphFormatting.SpacingAfter = Units.InchesToDocumentsF(0.3f);

word-document-api-examples/CS/CodeExamples/ListsActions.cs#L38

csharp
// Specify the left indent of the level's paragraph.
level.ParagraphProperties.LeftIndent = 100;

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

vb
Dim level As DevExpress.XtraRichEdit.API.Native.ListLevel = list.Levels(0)
level.ParagraphProperties.LeftIndent = 100
'Specify the bullets' format

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

vb
Dim level As ListLevel = list.Levels(0)
level.ParagraphProperties.LeftIndent = 100

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

vb
' Specify the left indent of the level's paragraph.
level.ParagraphProperties.LeftIndent = 100
' Specify the format of bullets.

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

vb
'Default unit is 1/300 of an inch (a document unit).
titleParagraphFormatting.LeftIndent = Units.InchesToDocumentsF(0.5F)
titleParagraphFormatting.SpacingAfter = Units.InchesToDocumentsF(0.3F)

See Also

RightIndent

Unit

BeginUpdateParagraphs(DocumentRange)

EndUpdateParagraphs(ParagraphProperties)

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace