Class PdfOutlineCollection
Represents a collection of outlines.
public class PdfOutlineCollection : PdfObject, ICloneable, IList<PdfOutline>, ICollection<PdfOutline>, IEnumerable<PdfOutline>, IEnumerable
- Inheritance
-
PdfOutlineCollection
- Implements
- Inherited Members
Properties
Count
Gets the number of entries in this collection.
public int Count { get; }
Property Value
IsReadOnly
Returns false.
public bool IsReadOnly { get; }
Property Value
this[int]
Gets the PdfOutline at the specified index.
public PdfOutline this[int index] { get; set; }
Parameters
index
int
Property Value
Methods
Add(PdfOutline)
Adds the specified outline.
public void Add(PdfOutline outline)
Parameters
outline
PdfOutline
Add(string, PdfPage)
Creates a PdfOutline and adds it into the outline collection.
public PdfOutline Add(string title, PdfPage destinationPage)
Parameters
Returns
Add(string, PdfPage, bool)
Adds the specified outline entry.
public PdfOutline Add(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.
Returns
Add(string, PdfPage, bool, PdfOutlineStyle)
Adds the specified outline entry.
public PdfOutline Add(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.
Returns
Add(string, PdfPage, bool, PdfOutlineStyle, XColor)
Adds the specified outline entry.
public PdfOutline Add(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.
Returns
Clear()
Removes all elements form the collection.
public void Clear()
Contains(PdfOutline)
Determines whether the specified element is in the collection.
public bool Contains(PdfOutline item)
Parameters
item
PdfOutline
Returns
CopyTo(PdfOutline[], int)
Copies the collection to an array, starting at the specified index of the target array.
public void CopyTo(PdfOutline[] array, int arrayIndex)
Parameters
array
PdfOutline[]arrayIndex
int
GetEnumerator()
Returns an enumerator that iterates through the outline collection.
public IEnumerator<PdfOutline> GetEnumerator()
Returns
IndexOf(PdfOutline)
Gets the index of the specified item.
public int IndexOf(PdfOutline item)
Parameters
item
PdfOutline
Returns
Insert(int, PdfOutline)
Inserts the item at the specified index.
public void Insert(int index, PdfOutline outline)
Parameters
index
intoutline
PdfOutline
Remove(PdfOutline)
Removes the first occurrence of a specific item from the collection.
public bool Remove(PdfOutline item)
Parameters
item
PdfOutline
Returns
RemoveAt(int)
Removes the outline item at the specified index.
public void RemoveAt(int index)
Parameters
index
int