System.Windows.Forms 2.0.0.0 System.Windows.Forms.ToolStripItem is the abstract base class for , , and . can host other controls, including custom controls, in two ways: Construct a with a class that derives from . To fully access the hosted control and properties, you must cast the property back to the actual class it represents. Extend , and in the inherited class's default constructor, call the base class constructor passing a class that derives from . This option lets you wrap common control methods and properties for easy access in a . Use the class to host your customized controls or any other Windows Forms control. To customize a , derive from and create a custom implementation. You can override methods such as to handle events raised by the hosted controls, and you can put custom functionality into properties to enhance the hosted control. Hosts custom controls or Windows Forms controls. Constructor To be added. Initializes a new instance of the class that hosts the specified control. The hosted by this class. 2.0.0.0 Constructor To be added. Initializes a new instance of the class that hosts the specified control and that has the specified name. The hosted by this class. The name of the . 2.0.0.0 Property System.Drawing.Color To be added. To be added. Gets or sets the background color for the control. 2.0.0.0 Property 2.0.0.0 System.ComponentModel.DefaultValue(null) System.ComponentModel.Localizable(true) System.Drawing.Image To be added. To be added. Gets or sets the background image displayed in the control. Property 2.0.0.0 System.ComponentModel.DefaultValue(System.Windows.Forms.ImageLayout.Tile) System.ComponentModel.Localizable(true) System.Windows.Forms.ImageLayout To be added. To be added. Gets or sets the background image layout as defined in the ImageLayout enumeration. Property System.Boolean To be added. To be added. Gets a value indicating whether the control can be selected. 2.0.0.0 Property 2.0.0.0 System.ComponentModel.DefaultValue(true) System.Boolean To be added. To be added. Gets or sets a value indicating whether the hosted control causes and raises validation events on other controls when the hosted control receives focus. Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.Browsable(false) System.Windows.Forms.Control To be added. To be added. Gets the that this is hosting. 2.0.0.0 Property System.ComponentModel.DefaultValue(System.Drawing.ContentAlignment.MiddleCenter) System.ComponentModel.Browsable(false) System.Drawing.ContentAlignment To be added. Use the property to determine or define how hosted controls are to be laid out on the form. Gets or sets the alignment of the control on the form. 2.0.0.0 Method System.Windows.Forms.AccessibleObject To be added. Creates a new accessibility object for the control. A new for the control. 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced) Property System.Drawing.Size To be added. The property represents the of the control when it is initially created. If is true, the control is sized automatically in accordance with the orientation. You can manually adjust the size of the control by setting its property value to false. In order to maintain better performance, you should not set the of a control in its constructor. The preferred method is to override the property. Gets the default size of the control. 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Windows.Forms.ToolStripItemDisplayStyle To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Event System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.EventHandler This event is not relevant to this class. This event is not relevant to this class. 2.0.0.0 Method System.Void This method is called by the public Dispose method and the method. Dispose invokes the protected Dispose(Boolean) method with the parameter set to true. invokes Dispose with set to false. When the parameter is true, this method releases all resources held by any managed objects that this references. This method invokes the Dispose method of each referenced object. Releases the unmanaged resources used by the and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. 2.0.0.0 Property System.ComponentModel.DefaultValue(false) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Boolean To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Property System.Boolean To be added. To be added. Gets or sets a value indicating whether the parent control of the is enabled. 2.0.0.0 Event System.EventHandler For more information about event-handler delegates, see Events and Delegates. Occurs when the hosted control is entered. 2.0.0.0 Method System.Void To be added. Gives the focus to a control. 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced) Property System.Boolean To be added. To be added. Gets a value indicating whether the control has input focus. 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always) System.ComponentModel.Browsable(false) Property System.Drawing.Font To be added. To be added. Gets or sets the font to be used on the hosted control. 2.0.0.0 Property System.Drawing.Color To be added. To be added. Gets or sets the foreground color of the hosted control. 2.0.0.0 Method System.Drawing.Size To be added. Retrieves the size of a rectangular area into which a control can be fitted. An ordered pair of type representing the width and height of a rectangle. The custom-sized area for a control. 2.0.0.0 Event System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced) System.ComponentModel.Browsable(false) System.EventHandler For more information about handling events, see Consuming Events. Occurs when the hosted control receives focus. 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Drawing.Image To be added. This property is not relevant to this class. The image associated with the object. 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Drawing.ContentAlignment To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Windows.Forms.ToolStripItemImageScaling To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Property System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Drawing.Color To be added. The color to treat as transparent in the object. This property is not relevant to this class. 2.0.0.0 Event System.Windows.Forms.KeyEventHandler For more information about handling events, see Consuming Events. Occurs when a key is pressed and held down while the hosted control has focus. 2.0.0.0 Event System.Windows.Forms.KeyPressEventHandler For more information about handling events, see Consuming Events. Occurs when a key is pressed while the hosted control has focus. 2.0.0.0 Event System.Windows.Forms.KeyEventHandler For more information about handling events, see Consuming Events. Occurs when a key is released while the hosted control has focus. 2.0.0.0 Event System.EventHandler For more information about handling events, see Consuming Events. Occurs when the input focus leaves the hosted control. 2.0.0.0 Event System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced) System.ComponentModel.Browsable(false) System.EventHandler For more information about handling events, see Consuming Events. Occurs when the hosted control loses focus. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Occurs when the property changes. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. An that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. An that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Synchronizes the resizing of the control host with the resizing of the hosted control. An that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void To be added. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void To be added. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void To be added. To be added. To be added. To be added. 2.0.0.0 Method System.Void Override the method to add or prevent the synchronizing of control events. If you override and hook up events here, unhook them by using the method. Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Subscribes events from the hosted control. The control from which to subscribe events. 2.0.0.0 Method System.Void Override the method to unsubscribe events subscribed in . Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Unsubscribes events from the hosted control. The control from which to unsubscribe events. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method System.Void Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. A that contains the event data. 2.0.0.0 Method 2.0.0.0 System.Boolean To be added. To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Boolean To be added. Processes a dialog key. true if the key was processed by the item; otherwise, false. One of the values that represents the key to process. Method System.Void This method is not relevant to this class. This method is not relevant to this class. 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) Method System.Void This method is not relevant to this class. This method is not relevant to this class. 2.0.0.0 System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) Property 2.0.0.0 System.Windows.Forms.RightToLeft To be added. To be added. Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. Property 2.0.0.0 System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Boolean To be added. This property is not relevant to this class. This property is not relevant to this class. Property System.Boolean To be added. To be added. Gets a value indicating whether the item is selected. 2.0.0.0 Method 2.0.0.0 System.Void To be added. To be added. To be added. Property System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced) System.ComponentModel.ISite To be added. To be added. Gets or sets the site of the hosted control. 2.0.0.0 Property 2.0.0.0 System.Drawing.Size To be added. To be added. Gets or sets the size of the . Property System.ComponentModel.DefaultValue("") System.String To be added. To be added. Gets or sets the text to be displayed on the hosted control. 2.0.0.0 Property System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Drawing.ContentAlignment To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Property 2.0.0.0 System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripTextDirection.Horizontal) System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Windows.Forms.ToolStripTextDirection To be added. This property is not relevant to this class. This property is not relevant to this class. Property System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never) System.ComponentModel.Browsable(false) System.Windows.Forms.TextImageRelation To be added. This property is not relevant to this class. This property is not relevant to this class. 2.0.0.0 Event System.EventHandler For more information about handling events, see Consuming Events. Occurs after the hosted control has been successfully validated. 2.0.0.0 Event System.ComponentModel.CancelEventHandler For more information about handling events, see Consuming Events. Occurs while the hosted control is validating. 2.0.0.0