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_Expanded

See Also Example
Collapse All

This property gets or sets the value indicating if the current node subtree is expanded.

Syntax

VARIANT_BOOL PDFOUTLINENODE_Expanded { get; set; }
Value
VARIANT_TRUE if the current node subtree is expanded, VARIANT_FALSE otherwise.

Remarks

This property indicates the current status (expanded or collapsed) of the child node tree.

Equivalent in new interface: IPDFDocument4::IsOutlineExpanded, IPDFDocument4::SetOutlineExpanded.

Example

Expand/Collapse a Node

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.NewPage;
lAction := PDF.CreateGoToPageAction(1, 0)
ind1 := PDF.PDFOUTLINES_Add(0, 'Outline 1', lAction, charsetANSI_CHARSET);
{ this node will be shown collapsed }
PDF.PDFOUTLINENODE_Expanded = false;
ind2 := PDF.PDFOUTLINES_AddChild(ind1, 'Outline 2', lAction, charsetANSI_CHARSET);
ind3 := PDF.PDFOUTLINES_AddChild(ind1, 'Outline 3', lAction, charsetANSI_CHARSET);
ind4 := PDF.PDFOUTLINES_AddChild(ind1, 'Outline 4', lAction, charsetANSI_CHARSET);
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->NewPage();
LONG lAction = PDF->CreateGoToPageAction(1, 0);
LONG ind1 = PDF->PDFOUTLINES_Add(0, "Outline 1", lAction, charsetANSI_CHARSET);
// this node will be shown collapsed
PDF->PDFOUTLINENODE_Expanded = FALSE;
LONG ind2 = PDF->PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, charsetANSI_CHARSET);
LONG ind3 = PDF->PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, charsetANSI_CHARSET);
LONG ind4 = PDF->PDFOUTLINES_AddChild(ind1, "Outline 4", lAction, charsetANSI_CHARSET);
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.NewPage();
long lAction = PDF.CreateGoToPageAction(1, 0);
long ind1 = PDF.PDFOUTLINES_Add(0, "Outline 1", lAction, TxFontCharset.charsetANSI_CHARSET);
// this node will be shown collapsed
PDF.PDFOUTLINENODE_Expanded = false;
long ind2 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, TxFontCharset.charsetANSI_CHARSET);
long ind3 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, TxFontCharset.charsetANSI_CHARSET);
long ind4 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 4", lAction, TxFontCharset.charsetANSI_CHARSET);
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.NewPage
lAction = PDF.CreateGoToPageAction(1, 0)
ind1 = PDF.PDFOUTLINES_Add(0, "Outline 1", lAction, 0)
' this node will be shown collapsed
PDF.PDFOUTLINENODE_Expanded = False
ind2 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 2", lAction, 0)
ind3 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, 0)
ind4 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 4", lAction, 0)
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