THPDFPage.AddFileAttachmentAnnotation

THPDFPage

 

Boven  Vorige  Volgende

Voegt op de huidige pagina een nieuwe FileAttachment-annotatie toe

 

Delphi-syntaxis:

procedure AddFileAttachmentAnnotation ( Contents: AnsiString; FileName: AnsiString; Rectangle: TRect; Color: TColor = clRed ); overload;

procedure AddFileAttachmentAnnotation ( const Contents: string; const FileName: TFileName; Rectangle: TRect; Color: TColor = clRed ); overload;

 

C++-syntaxis:

void __fastcall AddFileAttachmentAnnotation ( AnsiString Contents, AnsiString FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

void __fastcall AddFileAttachmentAnnotation ( const UnicodeString Contents, const Sysutils::TFileName FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

 

Beschrijving

Gebruik AddFileAttachmentAnnotation om een bestand op de huidige pagina in te sluiten als FileAttachment-annotatie, met de opgegeven beschrijving (Contents), het bestandspad (FileName), de begrenzingsrechthoek (Rectangle) en de kleur van het pictogram. De Unicode-overload TFileName (WideString op niet-Unicode-doelen) opent Unicode-mappen en -bestandsnamen zonder verlies van ANSI-codepagina's en schrijft een item in de bestandsspecificatie voor /UF wanneer de bladnaam niet-ASCII-tekens bevat.

 

 

Voorbeeld van bestandsbijlage-annotatie