ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.SelText

TIEPdfViewerInteraction.SelText


Declaration

property SelText: String;


Description

Returns any selected text.




Examples

// Display information on the selected text
ShowMessage( format( 'Sel Start: %d' + #13#10 + 'Sel Length: %d' + #13#10 + 'Sel Text: %s',
                     [ ImageEnView1.PdfViewer.SelStart,
                       ImageEnView1.PdfViewer.SelLength,
                       ImageEnView1.PdfViewer.SelText ]) );

// Save all text in the page to a file
ss := TStringList.Create;
ImageEnView1.LockPaint();
ImageEnView1.PdfViewer.SelectAll();
ss.Text := ImageEnView1.PdfViewer.SelText;
ImageEnView1.PdfViewer.ClearSelection();
ImageEnView1.UnlockPaint();
ss.SaveToFile( 'D:\Page.txt' );
ss.Free;


See Also

- SelLength
- SelStart
- ClearSelection
- SelectText
- SelectAll
- SelectLine
- SelectWord
- GetText