Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Outlines
PDFOUTLINENODE_HasChildren

See Also Example
Collapse All

Gets a value indicating whether a node has children.

Syntax

VARIANT_BOOL PDFOUTLINENODE_HasChildren { get; }
Value
VARIANT_TRUE if a node has children, VARIANT_FALSE otherwise.

Remarks

Analogue in new interface: no analogue, check IPDFDocument4::GetOutlineChildCount() > 0 instead.

Example

PDFOUTLINENODE_HasChildren example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
lAction := PDF.CreateGoToPageAction(0, 0);
ind1 := PDF.PDFOUTLINES_Add(0, 'Outline 1', lAction, charsetANSI_CHARSET);
ind2 := PDF.PDFOUTLINES_AddChild(ind1, 'Outline 2', lAction, charsetANSI_CHARSET)'
b2 := PDF.PDFOUTLINENODE_HasChildren;
PDF.SetCurrentPDFOutlineNode(ind1);
b1 := PDF.PDFOUTLINENODE_HasChildren;
{ b1 = True }
{ b2 = False }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
LONG lAction = PDF->CreateGoToPageAction(0, 0);
LONG ind1 = PDF->PDFOUTLINES_Add(0, "Outline 1", lAction, charsetANSI_CHARSET);
LONG ind2 = PDF->PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, charsetANSI_CHARSET);
BOOL b2 = PDF->PDFOUTLINENODE_HasChildren;
PDF->SetCurrentPDFOutlineNode(ind1);
BOOL b1 = PDF->PDFOUTLINENODE_HasChildren;
// b1 == true
// b2 == false
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
long lAction = PDF.CreateGoToPageAction(0, 0);
long ind1 = PDF.PDFOUTLINES_Add(0, "Outline 1", lAction, TxFontCharset.charsetANSI_CHARSET);
long ind2 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, TxFontCharset.charsetANSI_CHARSET);
bool b2 = PDF.PDFOUTLINENODE_HasChildren;
PDF.SetCurrentPDFOutlineNode(ind1);
bool b1 = PDF.PDFOUTLINENODE_HasChildren;
// b1 == true
// b2 == false
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
lAction = PDF.CreateGoToPageAction(0, 0)
ind1 = PDF.PDFOUTLINES_Add(0, "Outline 1", lAction, 0)
ind2 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, 0)
b2 = PDF.PDFOUTLINENODE_HasChildren
PDF.SetCurrentPDFOutlineNode ind1
b1 = PDF.PDFOUTLINENODE_HasChildren
' b1 = True
' b2 = False
PDF.EndDoc

See Also

Reference

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots