Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​ToolboxItemAttribute

Assembly: System.ComponentModel.TypeConverter

Inheritance: object → Attribute → ToolboxItemAttribute

Represents an attribute of a toolbox item.

Fields and Constants

public static readonly ToolboxItemAttribute
Default
Initializes a new instance of the <see cref="T:System.ComponentModel.ToolboxItemAttribute" /> class and sets the type to the default, <see cref="T:System.Drawing.Design.ToolboxItem" /> . This field is read-only.
public static readonly ToolboxItemAttribute
None
Initializes a new instance of the <see cref="T:System.ComponentModel.ToolboxItemAttribute" /> class and sets the type to <see langword="null" /> . This field is read-only.

Properties

public Type
ToolboxItemType
Gets or sets the type of the toolbox item.
public string
ToolboxItemTypeName
Gets or sets the name of the type of the current <see cref="T:System.Drawing.Design.ToolboxItem" /> .
public object
TypeId

Methods

public bool
Equals​(object obj)
Returns a value that indicates whether this instance is equal to a specified object.
Returns <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" /> .
obj An <see cref="T:System.Object" /> to compare with this instance or a null reference ( <see langword="Nothing" /> in Visual Basic).
public int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer hash code.
public bool
IsDefaultAttribute​()
Gets a value indicating whether the current value of the attribute is the default value for the attribute.
Returns <see langword="true" /> if the current value of the attribute is the default; otherwise, <see langword="false" /> .
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object