HRESULT PDFOUTLINENODE_Delete () |
Removes a node and its children from the tree of the outline items. Use this method to delete a node and free all associated memory.
Equivalent in new interface: IPDFDocument4::DeleteOutline.
{ 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); ind3 := PDF.PDFOUTLINES_AddChild(ind1, '-= Wrong =-', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINENODE_Delete; ind3 := PDF.PDFOUTLINES_AddChild(ind1, 'Outline 3', lAction, charsetANSI_CHARSET); PDF.EndDoc;
// 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); LONG ind3 = PDF->PDFOUTLINES_AddChild(ind1, "-= Wrong =-", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINENODE_Delete(); ind3 = PDF->PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, charsetANSI_CHARSET); PDF->EndDoc();
// 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); long ind3 = PDF.PDFOUTLINES_AddChild(ind1, "-= Wrong =-", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINENODE_Delete(); ind3 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.EndDoc();
' 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) ind3 = PDF.PDFOUTLINES_AddChild(ind1, "-= Wrong =-", lAction, 0) PDF.PDFOUTLINENODE_Delete ind3 = PDF.PDFOUTLINES_AddChild(ind1, "Outline 3", lAction, 0) PDF.EndDoc