ToolboxCategory ToolboxCategory ToolboxCategory ToolboxCategory Class

Definition

A collection of toolbox items that have been categorized.

public ref class ToolboxCategory sealed : System::Collections::IList, System::ComponentModel::INotifyPropertyChanged
public sealed class ToolboxCategory : System.Collections.IList, System.ComponentModel.INotifyPropertyChanged
type ToolboxCategory = class
    interface INotifyPropertyChanged
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ToolboxCategory
Implements IList, INotifyPropertyChanged
Inheritance
ToolboxCategoryToolboxCategoryToolboxCategoryToolboxCategory
Implements

Remarks

The ToolboxCategory collection contains items of type ToolboxItemWrapper that are added and removed from an instance of the collection using the Add and Remove methods.

The ToolboxCategory class implements the INotifyPropertyChanged interface. This allows the collection that is storing the toolbox items to provide notifications when properties like the CategoryName property are changed and methods like Add and Remove are used to change the contents of the collection.

Constructors

ToolboxCategory() ToolboxCategory() ToolboxCategory() ToolboxCategory()

Creates an instance of the ToolboxCategory class.

ToolboxCategory(String) ToolboxCategory(String) ToolboxCategory(String) ToolboxCategory(String)

Creates an instance of the ToolboxCategory class with a specified name.

Properties

CategoryName CategoryName CategoryName CategoryName

Gets or sets the name of the toolbox category.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the tool at the specified index.

Tools Tools Tools Tools

Gets the tools in the ToolboxCategory.

Methods

Add(ToolboxItemWrapper) Add(ToolboxItemWrapper) Add(ToolboxItemWrapper) Add(ToolboxItemWrapper)

Adds a specified tool to the end of the toolbox category collection.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper)

Removes the first occurrence of a specified tool from the toolbox category collection.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

PropertyChanged PropertyChanged PropertyChanged PropertyChanged

Occurs when a property value changes.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the entire ToolboxCategory collection to a compatible one-dimensional Array, starting at the specified index of the target Array.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

Gets the number of tools contained in the ToolboxCategory.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

Gets a value that indicates whether access to the ToolboxCategory is synchronized (thread safe).

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Gets an object that can be used to synchronize access to the ToolboxCategory.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the ToolboxCategory collection.

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

Adds a tool to the ToolboxCategory.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

Removes all the tools from the ToolboxCategory.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Determines whether the ToolboxCategory contains a specific tool.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Determines the index of a specific tool in the ToolboxCategory.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

Inserts a tool into the ToolboxCategory at the specified index.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

Gets a value that indicates whether the ToolboxCategory has a fixed size.

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

Gets a value that indicates whether the ToolboxCategory is read-only.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Gets or sets the tool at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Removes the first occurrence of a specific tool from the ToolboxCategory.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

Removes the tool at the specified index of the ToolboxCategory collection.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to