MaxTabs Field
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Represents the maximum number of tabs in a line. The value of this constant is 14.
Syntax
public const int MaxTabs = 14;Public Const MaxTabs As Integer = 14Examples
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;textControl.Text = "First item" & vbCrLf & "Second item" & vbCrLf & "Third item"
textControl.Select(0, textControl.Text.Length)
Dim paragraphFormat As ParagraphFormat = textControl.Selection.ParagraphFormat
Console.WriteLine($"Max Tabs: {ParagraphFormat.MaxTabs}")
Console.WriteLine("Paragraph Format is ready for use.")
textControl.Selection.ParagraphFormat = paragraphFormat