procedure PaintSelection(SelectionStart, SelectionEnd: Integer; Mask: TColor);
משקף את TPdfView.PaintSelection. רכיב TPdfView מעביר את הקריאה למופע Pdf הבסיסי ומרענן את התצוגה אם הקריאה משנה את המסמך.
כל ההערות הסמנטיות מ-TPdfView.PaintSelection חלות כאן באופן זהה; ההבדל היחיד הוא שאתה מטפל בפעולה דרך הפקד החזותי במקום אובייקט המודל.
כאשר TPdfView מקושר ל-TPdf חיצוני (הקצאה של PdfView1.Pdf := Pdf1), קריאה של איבר זה מחזירה את אותם נתונים כמו Pdf1.PaintSelection; כאשר TPdfView מחזיק TPdf פנימי משלו, איבר זה הוא המאגר הציבורי היחיד.
UpdatePage on the view; setting them through the underlying TPdf does not — remember to call PdfView1.UpdatePage manually in that case.PdfView1.Active is False.
if PdfView1.Active then
Memo1.Lines.Add('PaintSelection = ' + VarToStr(PdfView1.PaintSelection));