Class OutlineCollection

OutlineCollection class

Represents document outline hierarchy.

public sealed class OutlineCollection : Outlines


override Count { get; }Count of collection items. Please dont confuse with VisibleCount: VisibleCount gets number of visible outline item on all levels.
First { get; }Gets an outline item representing the first top-level item in the outline.
override IsReadOnly { get; }Gets a value indicating whether the collection is read-only.
IsSynchronized { get; }Gets a value indicating whether access to this collection is synchronized (thread safe).
Item { get; }Gets outline item from collection by index.
Last { get; }Gets an outline item representing the last top-level item in the outline.
SyncRoot { get; }Gets an object that can be used to synchronize access to this collection.
override VisibleCount { get; }Count is the sum of the number of visible descendent outline items at all levels. Note: please don’t confuse with Count which is number if items in collection.


override Add(OutlineItemCollection)Adds outline item to collection.
override Clear()Clears all items from the collection.
override Contains(OutlineItemCollection)Checks does collection contains given item.
override CopyTo(OutlineItemCollection[], int)Copies the outline items to an System.Array, starting at a particular System.Array index.
Delete()Deletes all outline items from the document outline.
Delete(string)Deletes the outline item with specified title from the document outline.
override GetEnumerator()Returns an enumerator that iterates through the collection.
Remove(int)Remove item by index.
override Remove(OutlineItemCollection)Always throws NotImplementedException

See Also