Limitations
Runtime only.
Gets or sets a string containing the currently selected text.
public string Text { get; set; }
Public Property Text() As String
The following example uses Text property to set a string containing the currently selected text. The text in this case is "TX Text Control".
textControl1.Text = "TX Text Control";
TXTextControl.Selection mySel = new TXTextControl.Selection(3, 4);
mySel.Bold = true;
mySel.Italic = true;
textControl1.Selection = mySel;
TextControl1.Text = "TX Text Control"
Dim mySel as TXTextControl.Selection = New TXTextControl.Selection(3, 4)
mySel.Bold = True
mySel.Italic = True
TextControl1.Selection = mySel
Runtime only.