Rediger

ToolStripItemDesignerAvailabilityAttribute Class

Definition

Specifies which types a ToolStripItem can appear in. This class cannot be inherited.

public ref class ToolStripItemDesignerAvailabilityAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class ToolStripItemDesignerAvailabilityAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type ToolStripItemDesignerAvailabilityAttribute = class
    inherit Attribute
Public NotInheritable Class ToolStripItemDesignerAvailabilityAttribute
Inherits Attribute
Inheritance
ToolStripItemDesignerAvailabilityAttribute
Attributes

Remarks

Available types are ToolStrip, MenuStrip, ContextMenuStrip, and StatusStrip.

Constructors

Name Description
ToolStripItemDesignerAvailabilityAttribute()

Initializes a new default instance of the ToolStripItemDesignerAvailabilityAttribute class.

ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability)

Initializes a new instance of the ToolStripItemDesignerAvailabilityAttribute class with the specified visibility.

Fields

Name Description
Default

Specifies the default value of the ToolStripItemDesignerAvailabilityAttribute. This field is read-only.

Properties

Name Description
ItemAdditionVisibility

Gets the visibility of a ToolStripItem.

Methods

Name Description
Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

GetHashCode()

Returns the hash code for this instance.

IsDefaultAttribute()

When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

Applies to