Class OutlineCollection
An ordered collection of bookmark (outline) items. The top-level instance is exposed via Outlines; each OutlineItem also has its own child DRIT.Pdf.Outlines collection.
Inherited Members
Namespace: DRIT.Pdf.Outlines
Assembly: DRIT.Pdf.dll
Syntax
public sealed class OutlineCollection
Properties
Count
Number of items directly in this collection (not counting descendants).
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets a top-level outline item by zero-based index.
Declaration
public OutlineItem this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| OutlineItem |
Methods
AddLast(string)
Append a new bookmark with the given display title and return it.
Declaration
public OutlineItem AddLast(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title |
Returns
| Type | Description |
|---|---|
| OutlineItem |
Clear()
Remove all bookmark items (and their descendants) from this collection.
Declaration
public void Clear()
RemoveAt(int)
Remove the bookmark item at the specified zero-based index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |