Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Outlines
PDFOUTLINENODE_HasChildren

See Also Example
Collapse All

This property 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

Equivalent in new interface: None. Use IPDFDocument4::GetOutlineChildCount() (checking for a result greater than zero) 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-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots