# GetSelTextBuf Method

## Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

## Declaration

function GetSelTextBuf(Buffer: PWideChar, BuffSize: integer): integer;

## Description

The GetSelTextBuf method copies the selected text into the buffer pointed to by Buffer, up to a maximum of BufSize characters, and returns the number of characters copied. For TFrameViewer.GetSetTextBuf, the selected text copied is that of the currently active Frame.

See also

SelText Property

SelLength Property