FillTextBlock

Blokken, interactie

Beschrijving

Vult een text block persoonlijk in door de gegeven tekst in diens rectangle te passen met de huidige fontkeuze

Syntaxis

Delphi

Function FillTextBlock(Page, BlockIndex: Integer; Const Text: WideString;
  Options: Integer): Integer;

ActiveX

Function PDFlib::FillTextBlock(Page As Long, BlockIndex As Long, Text As String, Options As Long) As Long

DLL

int DLFillTextBlock(int InstanceID, int Page, int BlockIndex, const wchar_t* Text, int Options);
int DLFillTextBlockA(int InstanceID, int Page, int BlockIndex, const char* Text, int Options);

Parameters

Page, BlockIndexBlockselector
TextNiet-lege vervangende tekst
OptionsBit 1 verwijdert de block-annotatie na een succesvolle vulling

Retourwaarden

1 wanneer de tekst is geplaatst, 0 wanneer het block ontbreekt, geen text block is of het passen mislukte

Opmerkingen

Blockproperties fontname (of font), fontsize (of size), fillcolor (of textcolor/color), alignment (of align/position) en fitmethod worden automatisch toegepast wanneer aanwezig, en de font, tekstgrootte, kleur, uitlijning en geselecteerde pagina van de aanroeper worden hersteld vóór de return

Zie ook

GetBlockCount, AddBlock, GetBlockType, GetBlockRect