SelectedText Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets the text of the current selection in the text box.
Syntax
public string SelectedText { get; set; }Public Property SelectedText As StringExamples
The following example uses RibbonTextBox.SelectedText to configure selected text as part of the ribbon text box workflow. The change is then applied to the active document or user interface.
ribbonTextBox.SelectedText = "Quarterly results";
ribbonTextBox.Update();ribbonTextBox.SelectedText = "Quarterly results"
ribbonTextBox.Update()