PDFium Delphi Component Docs

DetachFormObjectChild Méthode

Composant: TPdf  ·  Unit: PDFium
Transfère un enfant hors d’un objet de formulaire et rend la propriété à l’appelant

Syntaxe

function DetachFormObjectChild(FormIndex, ChildIndex: Integer): FPDF_PAGEOBJECT;

Description

DetachFormObjectChild retire l’enfant à ChildIndex de l’objet de formulaire à FormIndex et renvoie son handle d’objet de page natif

L’appelant possède le handle renvoyé jusqu’à ce qu’il soit inséré dans la page avec InsertObjectAtIndex ou détruit ; des index hors limites ou des objets non formulaire lèvent EPdfError

Remarques

Exemple

Child := Pdf1.DetachFormObjectChild(FormIdx, ChildIdx);
if Child <> nil then
  Pdf1.InsertObjectAtIndex(Pdf1.ObjectCount, Child);

Voir aussi

FormObjectChildren, InsertFormObjectFromXObject, Advanced page content