TX Text Control .NET Server

MaxTabs Field

Field
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

Represents the maximum number of tabs in a line. The value of this constant is 14.

Syntax

public const int MaxTabs = 14;

Examples

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

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

Console.WriteLine($"Max Tabs: {ParagraphFormat.MaxTabs}");
Console.WriteLine("Paragraph Format is ready for use.");

textControl.Selection.ParagraphFormat = paragraphFormat;