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
indexint
Property Value
Methods
Add(PdfOutline)
Adds the specified outline.
public void Add(PdfOutline outline)
Parameters
outlinePdfOutline
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
titlestringThe outline text.
destinationPagePdfPageThe destination page.
openedboolSpecifies 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
titlestringThe outline text.
destinationPagePdfPageThe destination page.
openedboolSpecifies whether the node is displayed expanded (opened) or collapsed.
stylePdfOutlineStyleThe 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
titlestringThe outline text.
destinationPagePdfPageThe destination page.
openedboolSpecifies whether the node is displayed expanded (opened) or collapsed.
stylePdfOutlineStyleThe font style used to draw the outline text.
textColorXColorThe 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
itemPdfOutline
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
arrayPdfOutline[]arrayIndexint
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
itemPdfOutline
Returns
Insert(int, PdfOutline)
Inserts the item at the specified index.
public void Insert(int index, PdfOutline outline)
Parameters
indexintoutlinePdfOutline
Remove(PdfOutline)
Removes the first occurrence of a specific item from the collection.
public bool Remove(PdfOutline item)
Parameters
itemPdfOutline
Returns
RemoveAt(int)
Removes the outline item at the specified index.
public void RemoveAt(int index)
Parameters
indexint