Selection Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Gets or sets the current selection in the main text of the document. The property value is an object of the type Selection. A selection can be used to assign character and paragraph formatting attributes to a piece of text.
Syntax
public Selection Selection { get; set; }Public Property Selection As SelectionExamples
The following example uses the current selection to emphasize a report heading.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, "Quarterly results".Length);
textControl.Selection.Bold = true;textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, "Quarterly results".Length)
textControl.Selection.Bold = TrueLimitations
Runtime only.