Bar

BarItemLinkCollection Members

Represents a collection of links.

Constructors

Name Description
BarItemLinkCollection() Creates a new BarItemLinkCollection object.
BarItemLinkCollection(Object) Creates a new BarItemLinkCollection object with the specified owner.

Properties

Name Description
Count Gets the number of elements contained in the ReadOnlyCollectionBase instance. Inherited from ReadOnlyCollectionBase.
InnerList protected Gets the list of elements contained in the ReadOnlyCollectionBase instance. Inherited from ReadOnlyCollectionBase.
Item[Int32] Provides indexed access to individual links. Inherited from BarItemLinkReadOnlyCollection.
RecentLinkCount Gets the total number of items that have recently been used. Inherited from BarItemLinkReadOnlyCollection.
ICollection.IsSynchronized Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe). Inherited from ReadOnlyCollectionBase.
ICollection.SyncRoot Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object. Inherited from ReadOnlyCollectionBase.

Methods

Name Description
Add(BarItem) Creates a link to the specified bar item and adds it to the end of the collection.
Add(BarItem, Boolean) Adds a new item link to the collection.
Add(BarItem, Boolean, String) Adds a new item link to the collection.
Add(BarItem, Boolean, String, String) Creates a link to the specified bar item with the specified Key Tips, and adds it to the end of the collection. The method enables you to specifiy whether the created link starts a group.
Add(BarItem, Boolean, String, String, Boolean) Creates a link to the specified bar item with the specified Key Tips, and adds it to the end of the collection. The method enables you to specifiy whether the created link starts a group, and whether it must be arranged in the same manner as a BarButtonGroup.
Add(BarItem, Boolean, String, String, Boolean, Boolean) Creates a new item link with the specific settings, and places it into this collection.
Add(BarItem, String) Adds a link to the specified bar item and key tip, and adds it to the end of the collection.
Add(BarItem, String, String) Creates a link to the specified bar item with the specified Key Tips, and adds it to the end of the collection.
AddRange(BarItem[]) Creates an array of links to the specified bar items and adds them to the end of the collection.
AddRange(IEnumerable<BarItem>) Adds BarItemLinks for each of the target BarItem objects.
Assign(BarItemLinkCollection) Copies item links from the source collection to the current collection.
Clear() Removes all item links from the collection.
Contains(BarItemLink) Indicates whether the collection contains the specified link. Inherited from BarItemLinkReadOnlyCollection.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetEnumerator() Returns an enumerator that iterates through the ReadOnlyCollectionBase instance. Inherited from ReadOnlyCollectionBase.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetRecentLink(Int32) Returns a recently used item link by its index. Inherited from BarItemLinkReadOnlyCollection.
GetType() Gets the Type of the current instance. Inherited from Object.
IndexOf(BarItemLink) Returns the specified link's position within the collection. Inherited from BarItemLinkReadOnlyCollection.
Insert(BarItemLink, BarItem) Creates a new link to the specified bar item and adds it before the specified link in the collection.
Insert(Int32, BarItem) Creates a new link to the specified bar item and adds it to the specified position within the collection.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(BarItemLink) Removes a link from the collection.
RemoveAt(Int32) Removes the link at the specified position from the collection.
ICollection.CopyTo(Array, Int32) Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. Inherited from ReadOnlyCollectionBase.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
CollectionChanged Fires when changes are made to the collection.
See Also