TX Text Control .NET Server

RightIndent Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the distance, in twips, between the right edge of a Text Control document and the right edge of the text.

Syntax

public int RightIndent { get; set; }

Examples

The following example applies paragraph layout to selected report text by using ParagraphFormat.RightIndent.

textControl.Text = "First item\nSecond item\nThird item";
textControl.Select(0, textControl.Text.Length);
ParagraphFormat paragraphFormat = textControl.Selection.ParagraphFormat;

paragraphFormat.RightIndent = 720;
Console.WriteLine($"Right Indent used by Paragraph Format: {paragraphFormat.RightIndent}");

textControl.Selection.ParagraphFormat = paragraphFormat;

Remarks

The property's default value is 0.

The property returns its default value when the text selection contains multiple paragraphs with mixed right indents. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.