ToolboxCategory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
ToolboxCategory
- 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() |
Creates an instance of the ToolboxCategory class. |
ToolboxCategory(String) |
Creates an instance of the ToolboxCategory class with a specified name. |
Properties
CategoryName |
Gets or sets the name of the toolbox category. |
Item[Int32] |
Gets or sets the tool at the specified index. |
Tools |
Gets the tools in the ToolboxCategory. |
Methods
Add(ToolboxItemWrapper) |
Adds a specified tool to the end of the toolbox category collection. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(ToolboxItemWrapper) |
Removes the first occurrence of a specified tool from the toolbox category collection. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Events
PropertyChanged |
Occurs when a property value changes. |
Explicit Interface Implementations
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 |
Gets the number of tools contained in the ToolboxCategory. |
ICollection.IsSynchronized |
Gets a value that indicates whether access to the ToolboxCategory is synchronized (thread safe). |
ICollection.SyncRoot |
Gets an object that can be used to synchronize access to the ToolboxCategory. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through the ToolboxCategory collection. |
IList.Add(Object) |
Adds a tool to the ToolboxCategory. |
IList.Clear() |
Removes all the tools from the ToolboxCategory. |
IList.Contains(Object) |
Determines whether the ToolboxCategory contains a specific tool. |
IList.IndexOf(Object) |
Determines the index of a specific tool in the ToolboxCategory. |
IList.Insert(Int32, Object) |
Inserts a tool into the ToolboxCategory at the specified index. |
IList.IsFixedSize |
Gets a value that indicates whether the ToolboxCategory has a fixed size. |
IList.IsReadOnly |
Gets a value that indicates whether the ToolboxCategory is read-only. |
IList.Item[Int32] |
Gets or sets the tool at the specified index. |
IList.Remove(Object) |
Removes the first occurrence of a specific tool from the ToolboxCategory. |
IList.RemoveAt(Int32) |
Removes the tool at the specified index of the ToolboxCategory collection. |
Extension Methods
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Applies to
.NET