Visual Basic (Declaration) | |
---|---|
Public Property SelectedText As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public string SelectedText {get; set;} |
Return Value
A string that represents the selected text in the control.C# | Copy Code |
---|---|
private void detail_Format(object
sender, System.EventArgs eArgs) |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format |
To set this property, first set the SelectionStart and SelectionLength properties.