PDFOUTLINENODE_Title
IPDFDocument3 :: Outlines

See Also Example
Collapse All

This property gets or sets the text label of the current node.

Syntax

BSTR PDFOUTLINENODE_Title { get; set; }
Value
String containing the title

Remarks

This property gets or sets the text to be displayed on the screen for an outline node. You can change any node attribute during run-time. See PDFOUTLINENODE_Action, PDFOUTLINENODE_Charset.

Equivalent in new interface: IPDFDocument4::GetOutlineUnicodeTitle, IPDFDocument4::SetOutlineTitle, IPDFDocument4::SetOutlineUnicodeTitle.

Example

How to Change an Outline Node's Text

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_Add(0, 'Outline 2', lAction, charsetANSI_CHARSET);
PDF.SetCurrentPDFOutlineNode(ind1);
PDF.PDFOUTLINENODE_Title := '[Outline 1]';
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_Add(0, "Outline 2", lAction, charsetANSI_CHARSET);
PDF->SetCurrentPDFOutlineNode(ind1);
PDF->PDFOUTLINENODE_Title = "[Outline 1]";
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_Add(0, "Outline 2", lAction, TxFontCharset.charsetANSI_CHARSET);
PDF.SetCurrentPDFOutlineNode(ind1);
PDF.PDFOUTLINENODE_Title = "[Outline 1]";
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_Add(0, "Outline 2", lAction, 0)
PDF.SetCurrentPDFOutlineNode ind1
PDF.PDFOUTLINENODE_Title = "[Outline 1]"
PDF.EndDoc

See Also

Reference