SetTableCellAlignment

Disposition des pages

Description

Définit l’alignement vertical et horizontal d’une ou plusieurs cellules

Syntaxe

Delphi

Function TPDFlib.SetTableCellAlignment(TableID, FirstRow, FirstColumn, LastRow, LastColumn, NewCellAlignment: Integer): Integer;

ActiveX

Function PDFlib::SetTableCellAlignment(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long, NewCellAlignment As Long) As Long

DLL

int DLSetTableCellAlignment(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn, int NewCellAlignment);

Paramètres

TableIDTableID renvoyé par la fonction CreateTable
FirstRowNuméro de la première ligne à définir La ligne supérieure porte le numéro 1
FirstColumnLe numéro de la première colonne à définir La colonne la plus à gauche porte le numéro 1
LastRowNuméro de la dernière ligne à définir
LastColumnNuméro de la dernière colonne à définir
NewCellAlignment0 = haut gauche 1 = haut centre 2 = haut droit 3 = milieu gauche 4 = milieu centre 5 = milieu droit 6 = bas gauche 7 = bas centre 8 = bas droit

Valeurs de retour

1L’alignement a été appliqué aux cellules sélectionnées
0TableID n’est pas une table valide, la plage de lignes ou de colonnes est en dehors de la table, ou NewCellAlignment est en dehors de la plage prise en charge 0 à 8