function HasSelection: Boolean;
Returns True ako model unutarnjeg odabira preglednika sadrži bilo koji neprazni raspon, inače False. Jeftino (bez PDFium povratnog putovanja) tako da je sigurno pozvati iz OnSelectionChange handlers, from a popup's OnPopup to enable / disable a Copy item, or from a paint loop.
False on inactive views, when no document is assigned, and after every state-change clear (page navigate, document switch, deactivate, display mode change).CopyMenuItem.Enabled := PdfView1.HasSelection;