Export (0) Print
Expand All

ToolStripItem Members

Represents the base class that manages events and layout for all the elements that a ToolStrip or ToolStripDropDown can contain.

The following tables list the members exposed by the ToolStripItem type.

  Name Description
Protected method ToolStripItem Overloaded. Initializes a new instance of the ToolStripItem class.
Top

(see also Protected Properties )
  Name Description
Public property AccessibilityObject Gets the AccessibleObject assigned to the control.
Public property AccessibleDefaultActionDescription Gets or sets the default action description of the control for use by accessibility client applications.
Public property AccessibleDescription Gets or sets the description that will be reported to accessibility client applications.
Public property AccessibleName Gets or sets the name of the control for use by accessibility client applications.
Public property AccessibleRole Gets or sets the accessible role of the control, which specifies the type of user interface element of the control.
Public property Alignment Gets or sets a value indicating whether the item aligns towards the beginning or end of the ToolStrip.
Public property AllowDrop Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.
Public property Anchor Gets or sets the edges of the container to which a ToolStripItem is bound and determines how a ToolStripItem is resized with its parent.
Public property AutoSize Gets or sets a value indicating whether the item is automatically sized.
Public property AutoToolTip Gets or sets a value indicating whether to use the Text property or the ToolTipText property for the ToolStripItem ToolTip.
Public property Available Gets or sets a value indicating whether the ToolStripItem should be placed on a ToolStrip.
Public property BackColor Gets or sets the background color for the item.
Public property BackgroundImage  
Public property BackgroundImageLayout Gets or sets the background image layout used for the ToolStripItem.
Public property Bounds Gets the size and location of the item.
Public property CanSelect Gets a value indicating whether the item can be selected.
Public property Container  Gets the IContainer that contains the Component.(Inherited from Component.)
Public property ContentRectangle Gets the area where content, such as text and icons, can be placed within a ToolStripItem without overwriting background borders.
Public property DisplayStyle Gets or sets whether text and images are displayed on a ToolStripItem.
Public property Dock Gets or sets which ToolStripItem borders are docked to its parent control and determines how a ToolStripItem is resized with its parent.
Public property DoubleClickEnabled Gets or sets a value indicating whether the ToolStripItem can be activated by double-clicking the mouse.
Public property Enabled Gets or sets a value indicating whether the parent control of the ToolStripItem is enabled.
Public property Font Gets or sets the font of the text displayed by the item.
Public property ForeColor Gets or sets the foreground color of the item.
Public property Height Gets or sets the height, in pixels, of a ToolStripItem.
Public property Image Gets or sets the image that is displayed on a ToolStripItem.
Public property ImageAlign Gets or sets the alignment of the image on a ToolStripItem.
Public property ImageIndex Gets or sets the index value of the image that is displayed on the item.
Public property ImageKey Gets or sets the key accessor for the image in the ImageList that is displayed on a ToolStripItem.
Public property ImageScaling Gets or sets a value indicating whether an image on a ToolStripItem is automatically resized to fit in a container.
Public property ImageTransparentColor Gets or sets the color to treat as transparent in a ToolStripItem image.
Public property IsDisposed Gets a value indicating whether the object has been disposed of.
Public property IsOnDropDown Gets a value indicating whether the container of the current Control is a ToolStripDropDown.
Public property IsOnOverflow Gets a value indicating whether the Placement property is set to Overflow.
Public property Margin Gets or sets the space between the item and adjacent items.
Public property MergeAction Gets or sets how child menus are merged with parent menus.
Public property MergeIndex Gets or sets the position of a merged item within the current ToolStrip.
Public property Name Gets or sets the name of the item.
Public property Overflow Gets or sets whether the item is attached to the ToolStrip or ToolStripOverflowButton or can float between the two.
Public property Owner Gets or sets the owner of this item.
Public property OwnerItem Gets the parent ToolStripItem of this ToolStripItem.
Public property Padding Gets or sets the internal spacing, in pixels, between the item's contents and its edges.
Public property Placement Gets the current layout of the item.
Public property Pressed Gets a value indicating whether the state of the item is pressed.
Public property RightToLeft Gets or sets a value indicating whether items are to be placed from right to left and text is to be written from right to left.
Public property RightToLeftAutoMirrorImage Mirrors automatically the ToolStripItem image when the RightToLeft property is set to Yes.
Public property Selected Gets a value indicating whether the item is selected.
Public property Site  Gets or sets the ISite of the Component.(Inherited from Component.)
Public property Size Gets or sets the size of the item.
Public property Tag Gets or sets the object that contains data about the item.
Public property Text Gets or sets the text that is to be displayed on the item.
Public property TextAlign Gets or sets the alignment of the text on a ToolStripLabel.
Public property TextDirection Gets the orientation of text used on a ToolStripItem.
Public property TextImageRelation Gets or sets the position of ToolStripItem text and image relative to each other.
Public property ToolTipText Gets or sets the text that appears as a ToolTip for a control.
Public property Visible Gets or sets a value indicating whether the item is displayed.
Public property Width Gets or sets the width in pixels of a ToolStripItem.
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(Inherited from Component.)
Protected property DefaultAutoToolTip Gets a value indicating whether to display the ToolTip that is defined as the default.
Protected property DefaultDisplayStyle Gets a value indicating what is displayed on the ToolStripItem.
Protected property DefaultMargin Gets the default margin of an item.
Protected property DefaultPadding Gets the internal spacing characteristics of the item.
Protected property DefaultSize Gets the default size of the item.
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode.(Inherited from Component.)
Protected property DismissWhenClicked Gets a value indicating whether items on a ToolStripDropDown are hidden after they are clicked.
Protected property Events  Gets the list of event handlers that are attached to this Component.(Inherited from Component.)
Protected property Parent Gets or sets the parent container of the ToolStripItem.
Protected property ShowKeyboardCues Gets a value indicating whether to show or hide shortcut keys.
Top

(see also Protected Methods )
  Name Description
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Overloaded.  
Public method DoDragDrop Begins a drag-and-drop operation.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetCurrentParent Retrieves the ToolStrip that is the container of the current ToolStripItem.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetPreferredSize Retrieves the size of a rectangular area into which a control can be fit.
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Invalidate Overloaded. Invalidates some or all of the surface of the control and causes the control to be redrawn.
Public method PerformClick Activates the ToolStripItem when it is clicked with the mouse.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ResetBackColor This method is not relevant to this class.
Public method ResetDisplayStyle This method is not relevant to this class.
Public method ResetFont This method is not relevant to this class.
Public method ResetForeColor This method is not relevant to this class.
Public method ResetImage This method is not relevant to this class.
Public method ResetMargin This method is not relevant to this class.
Public method ResetPadding This method is not relevant to this class.
Public method ResetRightToLeft This method is not relevant to this class.
Public method ResetTextDirection This method is not relevant to this class.
Public method Select Selects the item.
Public method ToString Overridden.  
Top

  Name Description
Protected method CreateAccessibilityInstance Creates a new accessibility object for the ToolStripItem.
Protected method Dispose Overloaded. Overridden.  
Protected method Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Protected method IsInputChar Determines whether a character is an input character that the item recognizes.
Protected method IsInputKey Determines whether the specified key is a regular input key or a special key that requires preprocessing.
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)
Protected method OnAvailableChanged Raises the AvailableChanged event.
Protected method OnBackColorChanged Raises the BackColorChanged event.
Protected method OnBoundsChanged Occurs when the Bounds property changes.
Protected method OnClick Raises the Click event.
Protected method OnDisplayStyleChanged Raises the DisplayStyleChanged event.
Protected method OnDoubleClick Raises the DoubleClick event.
Protected method OnDragDrop Raises the DragDrop event.
Protected method OnDragEnter Raises the DragEnter event.
Protected method OnDragLeave Raises the DragLeave event.
Protected method OnDragOver Raises the DragOver event.
Protected method OnEnabledChanged Raises the EnabledChanged event.
Protected method OnFontChanged Raises the FontChanged event.
Protected method OnForeColorChanged Raises the ForeColorChanged event.
Protected method OnGiveFeedback Raises the GiveFeedback event.
Protected method OnLayout Raises the Layout event.
Protected method OnLocationChanged Raises the LocationChanged event.
Protected method OnMouseDown Raises the MouseDown event.
Protected method OnMouseEnter Raises the MouseEnter event.
Protected method OnMouseHover Raises the MouseHover event.
Protected method OnMouseLeave Raises the MouseLeave event.
Protected method OnMouseMove Raises the MouseMove event.
Protected method OnMouseUp Raises the MouseUp event.
Protected method OnOwnerChanged Raises the OwnerChanged event.
Protected method OnOwnerFontChanged Raises the FontChanged event when the Font property has changed on the parent of the ToolStripItem.
Protected method OnPaint Raises the Paint event.
Protected method OnParentBackColorChanged Raises the BackColorChanged event.
Protected method OnParentChanged Raises the ParentChanged event.
Protected method OnParentEnabledChanged Raises the EnabledChanged event when the Enabled property value of the item's container changes.
Protected method OnParentForeColorChanged Raises the ForeColorChanged event.
Protected method OnParentRightToLeftChanged Raises the RightToLeftChanged event.
Protected method OnQueryContinueDrag Raises the QueryContinueDrag event.
Protected method OnRightToLeftChanged Raises the RightToLeftChanged event.
Protected method OnTextChanged Raises the TextChanged event.
Protected method OnVisibleChanged Raises the VisibleChanged event.
Protected method ProcessCmdKey  
Protected method ProcessDialogKey  
Protected method ProcessMnemonic  
Protected method SetBounds Sets the size and location of the item.
Protected method SetVisibleCore Sets the ToolStripItem to the specified visible state.
Top

  Name Description
Public event AvailableChanged Occurs when the value of the Available property changes.
Public event BackColorChanged Occurs when the value of the BackColor property changes.
Public event Click Occurs when the ToolStripItem is clicked.
Public event DisplayStyleChanged Occurs when the DisplayStyle has changed.
Public event Disposed  Adds an event handler to listen to the Disposed event on the component.(Inherited from Component.)
Public event DoubleClick Occurs when the item is double-clicked with the mouse.
Public event DragDrop Occurs when the user drags an item and the user releases the mouse button, indicating that the item should be dropped into this item.
Public event DragEnter Occurs when the user drags an item into the client area of this item.
Public event DragLeave Occurs when the user drags an item and the mouse pointer is no longer over the client area of this item.
Public event DragOver Occurs when the user drags an item over the client area of this item.
Public event EnabledChanged Occurs when the Enabled property value has changed.
Public event ForeColorChanged Occurs when the ForeColor property value changes.
Public event GiveFeedback Occurs during a drag operation.
Public event LocationChanged Occurs when the location of a ToolStripItem is updated.
Public event MouseDown Occurs when the mouse pointer is over the item and a mouse button is pressed.
Public event MouseEnter Occurs when the mouse pointer enters the item.
Public event MouseHover Occurs when the mouse pointer hovers over the item.
Public event MouseLeave Occurs when the mouse pointer leaves the item.
Public event MouseMove Occurs when the mouse pointer is moved over the item.
Public event MouseUp Occurs when the mouse pointer is over the item and a mouse button is released.
Public event OwnerChanged Occurs when the Owner property changes.
Public event Paint Occurs when the item is redrawn.
Public event QueryAccessibilityHelp Occurs when an accessibility client application invokes help for the ToolStripItem.
Public event QueryContinueDrag Occurs during a drag-and-drop operation and allows the drag source to determine whether the drag-and-drop operation should be canceled.
Public event RightToLeftChanged Occurs when the RightToLeft property value changes.
Public event TextChanged Occurs when the value of the Text property changes.
Public event VisibleChanged Occurs when the value of the Visible property changes.
Top

Community Additions

ADD
Show:
© 2014 Microsoft