THotPDF.OutlineRoot-Eigenschaft

 

THotPDF.OutlineRoot

THotPDF

 

Nach oben  Zurück  Nächstes

Bestimmt die Wurzel der Gliederungen

 

Delphi-Syntax:

property OutlineRoot: THPDFDocOutlineObject;

 

C++-Syntax:

__property THPDFDocOutlineObject* OutlineRoot;

 

Beschreibung

Verwenden Sie OutlineRoot, um das Wurzelobjekt der Gliederungen abzurufen

 

Code Example


var
  Chapter1, Section1, Section2: THPDFDocOutlineObject;
begin
  Chapter1 := HPDF.OutlineRoot.AddChild( 'Chapter 1', 1 );    // Add chapter to outline root
  Section1 := Chapter1.AddChild( 'Section 1.1', 1 );          // Add section to chapter
  Section2 := Chapter1.AddChild( 'Section 1.2', 1 );          // Add another section
  Chapter1.Opened := true;                                    // Expand chapter in outline
end;