Class PdfOutline
Represents an outline item in the outlines tree. An 'outline' is also known as a 'bookmark'.
public sealed class PdfOutline : PdfDictionary, ICloneable, IEnumerable<KeyValuePair<string, PdfItem?>>, IEnumerable
- Inheritance
-
PdfOutline
- Implements
- Inherited Members
Constructors
PdfOutline()
Initializes a new instance of the PdfOutline class.
public PdfOutline()
PdfOutline(PdfDictionary)
Initializes a new instance from an existing dictionary. Used for object type transformation.
public PdfOutline(PdfDictionary dict)
Parameters
dict
PdfDictionary
PdfOutline(string, PdfPage)
Initializes a new instance of the PdfOutline class.
public PdfOutline(string title, PdfPage destinationPage)
Parameters
PdfOutline(string, PdfPage, bool)
Initializes a new instance of the PdfOutline class.
public PdfOutline(string title, PdfPage destinationPage, bool opened)
Parameters
title
stringThe outline text.
destinationPage
PdfPageThe destination page.
opened
boolSpecifies whether the node is displayed expanded (opened) or collapsed.
PdfOutline(string, PdfPage, bool, PdfOutlineStyle)
Initializes a new instance of the PdfOutline class.
public PdfOutline(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style)
Parameters
title
stringThe outline text.
destinationPage
PdfPageThe destination page.
opened
boolSpecifies whether the node is displayed expanded (opened) or collapsed.
style
PdfOutlineStyleThe font style used to draw the outline text.
PdfOutline(string, PdfPage, bool, PdfOutlineStyle, XColor)
Initializes a new instance of the PdfOutline class.
public PdfOutline(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style, XColor textColor)
Parameters
title
stringThe outline text.
destinationPage
PdfPageThe destination page.
opened
boolSpecifies whether the node is displayed expanded (opened) or collapsed.
style
PdfOutlineStyleThe font style used to draw the outline text.
textColor
XColorThe color used to draw the outline text.
Properties
Bottom
Gets or sets the bottom position of the page positioned at the bottom side of the window. Applies only if PageDestinationType is FitR.
public double Bottom { get; set; }
Property Value
DestinationPage
Gets or sets the destination page.
public PdfPage DestinationPage { get; set; }
Property Value
HasChildren
Gets a value indicating whether this outline object has child items.
public bool HasChildren { get; }
Property Value
Left
Gets or sets the left position of the page positioned at the left side of the window. Applies only if PageDestinationType is Xyz, FitV, FitR, or FitBV.
public double? Left { get; set; }
Property Value
Opened
Gets or sets whether the outline item is opened (or expanded).
public bool Opened { get; set; }
Property Value
Outlines
Gets the outline collection of this node.
public PdfOutlineCollection Outlines { get; }
Property Value
PageDestinationType
Gets or sets the type of the page destination.
public PdfPageDestinationType PageDestinationType { get; set; }
Property Value
Parent
Gets the parent of this outline item. The root item has no parent and returns null.
public PdfOutline Parent { get; }
Property Value
Right
Gets or sets the right position of the page positioned at the right side of the window. Applies only if PageDestinationType is FitR.
public double Right { get; set; }
Property Value
Style
Gets or sets the style of the outline text.
public PdfOutlineStyle Style { get; set; }
Property Value
TextColor
Gets or sets the color of the text.
public XColor TextColor { get; set; }
Property Value
- XColor
The color of the text.
Title
Gets or sets the title.
public string Title { get; set; }
Property Value
Top
Gets or sets the top position of the page positioned at the top side of the window. Applies only if PageDestinationType is Xyz, FitH, FitR, ob FitBH.
public double? Top { get; set; }
Property Value
Zoom
Gets or sets the zoom faction of the page. Applies only if PageDestinationType is Xyz.
public double? Zoom { get; set; }