Vcl.Clipbrd.TClipboard.GetTextBuf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTextBuf(Buffer: PChar; BufSize: Integer): Integer;

C++

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

Properties

Type Visibility Source Unit Parent
function public
Vcl.Clipbrd.pas
Vcl.Clipbrd.hpp
Vcl.Clipbrd TClipboard

Description

Retrieves text from the clipboard and copies it to a buffer.

Use GetTextBuf to retrieve text from the clipboard and copy it into the buffer pointed to by Buffer. GetTextBuf copies up to the number of characters given by BufSize and returns the number of characters copied. The resulting text in Buffer is a null-terminated string.

See Also