Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomEdit.GetSelTextBuf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetSelTextBuf(Buffer: PChar; BufSize: Integer): Integer; virtual;

C++

virtual int __fastcall GetSelTextBuf(System::WideChar * Buffer, int BufSize);

Properties

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

Description

Copies the selected text into a buffer and returns the number of characters copied.

Use GetSelTextBuf to copy the selected text into a character buffer. If there is no selection, the buffer receives an empty string. If the selection contains more than (BufSize - 1) characters, only the first (BufSize - 1) characters are copied. GetSelTextBuf returns the number of characters that were actually copied into the buffer.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance