Click or drag to resize

TypedRestrictCollectionT Class

Manage a collection of references that must be one of a restricted set of types.
Inheritance Hierarchy
SystemObject
  Internal.ComponentFactory.Krypton.ToolkitTypedCollectionT
    Internal.ComponentFactory.Krypton.ToolkitTypedRestrictCollectionT
      More...

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public abstract class TypedRestrictCollection<T> : TypedCollection<T>
where T : class

Type Parameters

T

The TypedRestrictCollectionT type exposes the following members.

Constructors
  NameDescription
Protected methodTypedRestrictCollectionT
Initializes a new instance of the TypedRestrictCollectionT class
Top
Properties
  NameDescription
Public propertyCount
Gets the number of items in collection.
(Inherited from TypedCollectionT.)
Public propertyIsFixedSize
Gets a value indicating whether the collection has a fixed size.
(Inherited from TypedCollectionT.)
Public propertyIsReadOnly
Gets a value indicating whether the collection is read-only.
(Inherited from TypedCollectionT.)
Public propertyIsSynchronized
Gets a value indicating whether access to the collection is synchronized (thread safe).
(Inherited from TypedCollectionT.)
Public propertyItemInt32
Gets or sets the item at the specified index.
(Inherited from TypedCollectionT.)
Public propertyItemString
Gets the item with the provided unique name.
(Inherited from TypedCollectionT.)
Public propertyRestrictTypes
Gets an array of types that the collection is restricted to contain.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the collection.
(Inherited from TypedCollectionT.)
Top
Methods
  NameDescription
Public methodAdd(Object)
Append an item to the collection.
(Overrides TypedCollectionTAdd(Object).)
Public methodAdd(T)
Append an item to the collection.
(Overrides TypedCollectionTAdd(Object).)
Public methodAddRange
Append an array of items.
(Inherited from TypedCollectionT.)
Public methodClear
Remove all items from the collection.
(Inherited from TypedCollectionT.)
Public methodContains(Object)
Determines whether the collection contains the item.
(Inherited from TypedCollectionT.)
Public methodCopyTo(Array, Int32)
Copies all the elements of the current collection to the specified Array.
(Inherited from TypedCollectionT.)
Public methodCopyTo(T, Int32)
Copies items to specified array starting at particular index.
(Inherited from TypedCollectionT.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Shallow enumerate over items in the collection.
(Inherited from TypedCollectionT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(Object)
Determines the index of the specified item in the collection.
(Inherited from TypedCollectionT.)
Public methodInsert(Int32, Object)
Inserts an item to the collection at the specified index.
(Overrides TypedCollectionTInsert(Int32, Object).)
Public methodInsert(Int32, T)
Inserts an item to the collection at the specified index.
(Overrides TypedCollectionTInsert(Int32, Object).)
Protected methodIsTypeAllowed
Discover if the incoming type is allowed to be in the collection.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveAfter
Move the source item to be immediately after the target item.
(Inherited from TypedCollectionT.)
Public methodMoveBefore
Move the source item to be immediately before the target item.
(Inherited from TypedCollectionT.)
Protected methodOnCleared
Raises the Cleared event.
(Inherited from TypedCollectionT.)
Protected methodOnClearing
Raises the Clearing event.
(Inherited from TypedCollectionT.)
Protected methodOnInserted
Raises the Inserted event.
(Inherited from TypedCollectionT.)
Protected methodOnInserting
Raises the Inserting event.
(Inherited from TypedCollectionT.)
Protected methodOnRemoved
Raises the Removed event.
(Inherited from TypedCollectionT.)
Protected methodOnRemoving
Raises the Removing event.
(Inherited from TypedCollectionT.)
Protected methodOnReordered
Raises the Reordered event.
(Inherited from TypedCollectionT.)
Public methodRemove(Object)
Removes first occurance of specified item.
(Inherited from TypedCollectionT.)
Public methodRemoveAt
Removes the item at the specified index.
(Inherited from TypedCollectionT.)
Public methodToString
Obtains the String representation of this instance.
(Inherited from TypedCollectionT.)
Top
Events
  NameDescription
Public eventCleared
Occurs when an items have been removed from the collection.
(Inherited from TypedCollectionT.)
Public eventClearing
Occurs when an items are about to be removed from the collection.
(Inherited from TypedCollectionT.)
Public eventInserted
Occurs when an item has been added/inserted to the collection.
(Inherited from TypedCollectionT.)
Public eventInserting
Occurs when an item is about to be added/inserted to the collection.
(Inherited from TypedCollectionT.)
Public eventRemoved
Occurs when an item is removed from the collection.
(Inherited from TypedCollectionT.)
Public eventRemoving
Occurs when an item is about to be removed from the collection.
(Inherited from TypedCollectionT.)
Public eventReordered
Occurs when items have been reordered inside the collection.
(Inherited from TypedCollectionT.)
Top
Extension Methods
See Also
Inheritance Hierarchy
SystemObject
  Internal.ComponentFactory.Krypton.ToolkitTypedCollectionT
    Internal.ComponentFactory.Krypton.ToolkitTypedRestrictCollectionT
      Internal.ComponentFactory.Krypton.RibbonKryptonRibbonGroupClusterCollection
      Internal.ComponentFactory.Krypton.RibbonKryptonRibbonGroupContainerCollection
      Internal.ComponentFactory.Krypton.RibbonKryptonRibbonGroupLinesCollection
      Internal.ComponentFactory.Krypton.RibbonKryptonRibbonGroupTripleCollection
      Internal.ComponentFactory.Krypton.RibbonKryptonRibbonQATButtonCollection
      Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenuCollection
      Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenuItemCollection
      Internal.ComponentFactory.Krypton.WorkspaceKryptonWorkspaceCollection