ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.SelectedText Property

Gets or sets the string containing the currently selected text within the grid's editing window.

[Visual Basic]

Public Property SelectedText As String

[C#]

public string SelectedText {get;set;}

[Delphi]

public property SelectedText: String read get_SelectedText write set_SelectedText;

Remarks

If no text is currently selected, then this property returns an empty string.

Setting SelectedText to a new value sets SelectionLength to 0 and replaces the selected text with the new string.

Use the SelectedText property in combination with the SelectionStart and SelectionLength properties to set the insertion point, establish an insertion range, select substrings, or clear text. These properties are useful for implementing copy, cut, and paste operations that transfer string data to and from the clipboard.

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.