ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.SelectionLength Property

Gets or sets the number of characters selected within the grid's editing window.

[Visual Basic]

Public Property SelectionLength As Integer

[C#]

public int SelectionLength {get;set;}

[Delphi]

public property SelectionLength: Int32 read get_SelectionLength write set_SelectionLength;

Remarks

When editing is not is progress, this property returns 0.

Setting SelectionLength to a value less than 0 causes a run time error.

Use the SelectionLength property in combination with the SelectionStart and SelectedText 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.