Vcl.StdCtrls.TCustomEdit.GetSelLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetSelLength: Integer; virtual;

C++

virtual int __fastcall GetSelLength();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomEdit

Description

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.

See Also