FillTextBlock
Blöcke, Interaktion
Beschreibung
Personalisiert einen Textblock, indem der gegebene Text mit der aktuellen Fontauswahl in sein Rechteck eingepasst wird
Syntax
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 LongDLL
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);Parameter
| Page, BlockIndex | Blockauswahl |
|---|---|
| Text | Nicht leerer Ersatztext |
| Options | Bit 1 löscht die Block-Anmerkung nach erfolgreichem Füllen |
Rückgabewerte
| 1, wenn der Text platziert wurde, 0 wenn der Block fehlt, kein Textblock ist oder das Einpassen scheiterte |
Anmerkungen
Block-Eigenschaften fontname (oder font), fontsize (oder size), fillcolor (oder textcolor/color), alignment (oder align/position) und fitmethod werden automatisch angewendet, wenn vorhanden; Font, Textgröße, Farbe, Ausrichtung und gewählte Seite des Aufrufers werden vor der Rückkehr wiederhergestellt