VARIANT_BOOL PDFOUTLINENODE_Expanded { get; set; } |
This property indicates the current status (expanded or collapsed) of the child node tree.
Equivalent in new interface: IPDFDocument4::IsOutlineExpanded, IPDFDocument4::SetOutlineExpanded.
{ 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;
// 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();
// 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();
' 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