This documentation is archived and is not being maintained.
ToolboxItemFilterType Enumeration
.NET Framework 1.1
Defines identifiers used to indicate the type of filter that a ToolboxItemFilterAttribute uses.
[Visual Basic] <Serializable> Public Enum ToolboxItemFilterType [C#] [Serializable] public enum ToolboxItemFilterType [C++] [Serializable] __value public enum ToolboxItemFilterType [JScript] public Serializable enum ToolboxItemFilterType
Members
| Member name | Description |
|---|---|
| Allow | Indicates that a toolbox item filter string is allowed, but not required. |
| Custom | Indicates that custom processing is required to determine whether to use a toolbox item filter string. This type of ToolboxItemFilterType is typically specified on a root designer class to indicate that the designer wishes to accept or reject a toolbox item through code. The designer must implement the GetToolSupported method of the IToolboxUser interface. |
| Prevent | Indicates that a toolbox item filter string is not allowed. If a designer and a component class both have a filter string and one has a ToolboxItemFilterType of Prevent, the toolbox item will not be available. |
| Require | Indicates that a toolbox item filter string must be present for a toolbox item to be enabled. For a toolbox item with a filter type of Require to be enabled, the designer and the component class must have a matching filter string. Additionally, neither the designer or component class can have a ToolboxItemFilterType of Prevent for the toolbox item to be enabled. |
Requirements
Namespace: System.ComponentModel
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)
See Also
Show: