API:Vcl.ComCtrls.TCustomRichEdit.GetSelLength
Delphi
function GetSelLength: Integer; override;
C++
virtual int __fastcall GetSelLength();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomRichEdit |
Description
Returns the SelLength property.
Vcl.ComCtrls.TCustomRichEdit.GetSelLength inherits from Vcl.StdCtrls.TCustomEdit.GetSelLength. All content below this line refers to Vcl.StdCtrls.TCustomEdit.GetSelLength.
Returns the SelLength property.
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.