TokenCollection Class

This collection class is used to hold the conceptual content tokens for an associated token file.

Definition

Namespace: SandcastleBuilder.Utils.ConceptualContent
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2024.12.21.0
public class TokenCollection : BindingList<Token>
Inheritance
Object    Collection<Token>    BindingList<Token>    TokenCollection

Constructors

TokenCollection Constructor

Properties

AllowEditGets or sets a value indicating whether items in the list can be edited.
(Inherited from BindingList<Token>)
AllowNewGets or sets a value indicating whether you can add items to the list using the AddNew() method.
(Inherited from BindingList<Token>)
AllowRemoveGets or sets a value indicating whether you can remove items from the collection.
(Inherited from BindingList<Token>)
CountGets the number of elements actually contained in the Collection<T>.
(Inherited from Collection<Token>)
IsSortedCoreGets a value indicating whether the list is sorted.
(Inherited from BindingList<Token>)
ItemGets or sets the element at the specified index.
(Inherited from Collection<Token>)
ItemsGets a IList<T> wrapper around the Collection<T>.
(Inherited from Collection<Token>)
RaiseListChangedEventsGets or sets a value indicating whether adding or removing items within the list raises ListChanged events.
(Inherited from BindingList<Token>)
SortDirectionCoreGets the direction the list is sorted.
(Inherited from BindingList<Token>)
SortPropertyCoreGets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null.
(Inherited from BindingList<Token>)
SupportsChangeNotificationCoreGets a value indicating whether ListChanged events are enabled.
(Inherited from BindingList<Token>)
SupportsSearchingCoreGets a value indicating whether the list supports searching.
(Inherited from BindingList<Token>)
SupportsSortingCoreGets a value indicating whether the list supports sorting.
(Inherited from BindingList<Token>)
TokenFilePath This is used to get or set the token file path

Methods

AddAdds an object to the end of the Collection<T>.
(Inherited from Collection<Token>)
AddNewAdds a new item to the collection.
(Inherited from BindingList<Token>)
AddNewCoreAdds a new item to the end of the collection.
(Inherited from BindingList<Token>)
ApplySortCoreSorts the items if overridden in a derived class; otherwise, throws a NotSupportedException.
(Inherited from BindingList<Token>)
CancelNewDiscards a pending new item.
(Inherited from BindingList<Token>)
ClearRemoves all elements from the Collection<T>.
(Inherited from Collection<Token>)
ClearItemsRemoves all elements from the collection.
(Inherited from BindingList<Token>)
ContainsDetermines whether an element is in the Collection<T>.
(Inherited from Collection<Token>)
CopyToCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<Token>)
EndNewCommits a pending new item to the collection.
(Inherited from BindingList<Token>)
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 This is used to find all tokens that match the specified predicate
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 BindingList<Token>)
GetEnumeratorReturns an enumerator that iterates through the Collection<T>.
(Inherited from Collection<Token>)
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 Collection<T>.
(Inherited from Collection<Token>)
InsertInserts an element into the Collection<T> at the specified index.
(Inherited from Collection<Token>)
InsertItemInserts the specified item in the list at the specified index.
(Inherited from BindingList<Token>)
Load Load the collection from the related file
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAddingNewRaises the AddingNew event.
(Inherited from BindingList<Token>)
OnListChangedRaises the ListChanged event.
(Inherited from BindingList<Token>)
RemoveRemoves the first occurrence of a specific object from the Collection<T>.
(Inherited from Collection<Token>)
RemoveAtRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<Token>)
RemoveItemRemoves the item at the specified index.
(Inherited from BindingList<Token>)
RemoveSortCoreRemoves any sort applied with ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.
(Inherited from BindingList<Token>)
ResetBindingsRaises a ListChanged event of type Reset.
(Inherited from BindingList<Token>)
ResetItemRaises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingList<Token>)
Save Save the token collection to its related file ready for use by BuildAssembler.
SetItemReplaces the item at the specified index with the specified item.
(Inherited from BindingList<Token>)
Sort This is used to sort the collection
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

AddingNewOccurs before an item is added to the list.
(Inherited from BindingList<Token>)
ListChangedOccurs when the list or an item in the list changes.
(Inherited from BindingList<Token>)

See Also