RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.GetSelLength Method

Returns the SelLength property.

Pascal
function GetSelLength: Integer; virtual;
C++
virtual __fastcall int GetSelLength();

GetSelLength is the property access function for the SelLength property. It is exposed as a protected method so that descendants of TCustomEdit can customize the implementation of the SelLength property.  

GetSelLength sends an EM_GETSEL message to the window of the edit control and returns the difference between the starting position and the ending position. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!