TX Text Control .NET Server

Start 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 starting point of selected text. The first possible position is 0. If the starting point of a selection is set to a new value, the selection's current length remains the same. To set a new starting point and a length simultaneously, use either the TextControl.Select method or create a new Selection object. To select parts of a table, use the Table.Select, TableRow.Select, TableColumn.Select and TableCell.Select methods.

Syntax

public int Start { get; set; }

Examples

The following example formats the heading of a short document by using Selection.Start.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

selection.Start = 1;
Console.WriteLine($"Start used by Selection: {selection.Start}");

Limitations

Runtime only.

Further Reading

  • Reporting: Conditional Formatted Text Blocks –
  • Drag and Drop Files into the Current Input Position –
  • MeasureString for Text in TextControl –
  • Sample Code: How to Format Selected Table Cells –