TocEntryCollection Class

This collection class is used to hold the table of contents entries for content layout and site map files

Definition

Namespace: SandcastleBuilder.Utils.ConceptualContent
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2024.12.21.0
public class TocEntryCollection : BindingList<TocEntry>, 
	ITableOfContents
Inheritance
Object    CollectionTocEntry    BindingListTocEntry    TocEntryCollection
Implements
ITableOfContents

Constructors

TocEntryCollection Default constructor
TocEntryCollection(ContentFile) Constructor

Properties

AllowEditGets or sets a value indicating whether items in the list can be edited.
(Inherited from BindingListTocEntry)
AllowNewGets or sets a value indicating whether you can add items to the list using the AddNew method.
(Inherited from BindingListTocEntry)
AllowRemoveGets or sets a value indicating whether you can remove items from the collection.
(Inherited from BindingListTocEntry)
ApiContentInsertionPoint This is used to get the topic at which the API table of contents is to be inserted or parented
ApiContentParent This is used to get the parent item that will contain the API table of contents
ApiContentParentCollection This is used to get the parent collection that contains the item where the API table of contents is to be inserted.
ContentLayoutFile This is used to get the content layout file metadata
CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionTocEntry)
DefaultTopic This is used to get the default topic
IsSortedCoreGets a value indicating whether the list is sorted.
(Inherited from BindingListTocEntry)
ItemInt32Gets or sets the element at the specified index.
(Inherited from CollectionTocEntry)
ItemString This can be used to get a topic by its unique ID (case-insensitive)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionTocEntry)
RaiseListChangedEventsGets or sets a value indicating whether adding or removing items within the list raises ListChanged events.
(Inherited from BindingListTocEntry)
SortDirectionCoreGets the direction the list is sorted.
(Inherited from BindingListTocEntry)
SortPropertyCoreGets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns .
(Inherited from BindingListTocEntry)
SupportsChangeNotificationCoreGets a value indicating whether ListChanged events are enabled.
(Inherited from BindingListTocEntry)
SupportsSearchingCoreGets a value indicating whether the list supports searching.
(Inherited from BindingListTocEntry)
SupportsSortingCoreGets a value indicating whether the list supports sorting.
(Inherited from BindingListTocEntry)

Methods

AddAdds an object to the end of the CollectionT.
(Inherited from CollectionTocEntry)
AddNewAdds a new item to the collection.
(Inherited from BindingListTocEntry)
AddNewCoreAdds a new item to the end of the collection.
(Inherited from BindingListTocEntry)
AddTopicsFromFolder Add all topics from the specified folder recursively to the collection and to the given project file
All This is used to enumerate all topics recursively
ApplySortCoreSorts the items if overridden in a derived class; otherwise, throws a NotSupportedException.
(Inherited from BindingListTocEntry)
CancelNewDiscards a pending new item.
(Inherited from BindingListTocEntry)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionTocEntry)
ClearItemsRemoves all elements from the collection.
(Inherited from BindingListTocEntry)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionTocEntry)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionTocEntry)
EndNewCommits a pending new item to the collection.
(Inherited from BindingListTocEntry)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Find(String) Find a TOC entry with the same source filename
Find(PredicateTocEntry, Boolean) This is used to find all topics and sub-topics that match the specified predicate recursively
FindCoreSearches for the index of the item that has the specified property descriptor with the specified value, if searching is implemented in a derived class; otherwise, a NotSupportedException.
(Inherited from BindingListTocEntry)
FindDefaultTopic This is used to locate the default topic if one exists
GenerateTableOfContents Generate the table of contents for the conceptual topics
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionTocEntry)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionTocEntry)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionTocEntry)
InsertItem This is overridden to set the inserted item's parent to this collection
(Overrides BindingListTInsertItem(Int32, T))
Load This is used to load the table of contents entries from the site map file associated with the collection.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAddingNewRaises the AddingNew event.
(Inherited from BindingListTocEntry)
OnListChangedRaises the ListChanged event.
(Inherited from BindingListTocEntry)
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionTocEntry)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionTocEntry)
RemoveItem This is overridden to clear the parent on the removed item
(Overrides BindingListTRemoveItem(Int32))
RemoveSortCoreRemoves any sort applied with ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.
(Inherited from BindingListTocEntry)
ResetBindingsRaises a ListChanged event of type Reset.
(Inherited from BindingListTocEntry)
ResetItemRaises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingListTocEntry)
ResetSortOrder Reset the sort order on all items in the collection
Save This is used to save the table of contents entries to the site map file associated with the collection.
SaveToIntermediateTocFile This is used to save the TOC information to an intermediate TOC file used in the conceptual content build.
SetItem This is overridden to set the inserted item's parent to this collection
(Overrides BindingListTSetItem(Int32, T))
Sort This is used to sort the collection
ToString Convert the table of contents entry and its children to a string
(Overrides ObjectToString)

Events

AddingNewOccurs before an item is added to the list.
(Inherited from BindingListTocEntry)
ListChangedOccurs when the list or an item in the list changes.
(Inherited from BindingListTocEntry)

See Also