Vcl.StdCtrls.TCustomEdit.SetSelTextBuf
Delphi
procedure SetSelTextBuf(Buffer: PChar);
C++
void __fastcall SetSelTextBuf(System::WideChar * Buffer);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Replaces the selected text with a null-terminated string.
Use SetSelTextBuf to replace the current selection by the contents of the null-terminated string pointed to by Buffer. If no text is selected, the contents of Buffer are inserted at the cursor. SetSelTextBuf does the same thing as setting the SelText property, except that it takes a pointer to a char type rather than a string.
See Also
Code Examples