RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomRichEdit.GetSelTextBuf Method

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

Pascal
function GetSelTextBuf(Buffer: PChar; BufSize: Integer): Integer; override;
C++
virtual __fastcall int GetSelTextBuf(const char * Buffer, int BufSize);

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. 

 

CopyToClipboard 

GetTextBuf 

SelLength 

SelText 

SetSelTextBuf

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!