System.Windows.Forms.ToolStripControlHost Members

The members of System.Windows.Forms.ToolStripControlHost are listed below.

See Also: Inherited members from System.Windows.Forms.ToolStripItem

Public Constructors

Initializes a new instance of the System.Windows.Forms.ToolStripControlHost class that hosts the specified control.

Initializes a new instance of the System.Windows.Forms.ToolStripControlHost class that hosts the specified control and that has the specified name.

Public Properties

override
BackColorSystem.Drawing.Color.

Gets or sets the background color for the control.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image displayed in the control.

override
BackgroundImageLayoutImageLayout.

Gets or sets the background image layout as defined in the ImageLayout enumeration.

[read-only]
override
CanSelectbool.

Gets a value indicating whether the control can be selected.

CausesValidationbool.

Gets or sets a value indicating whether the hosted control causes and raises validation events on other controls when the hosted control receives focus.

[read-only]
ControlControl.

Gets the System.Windows.Forms.Control that this System.Windows.Forms.ToolStripControlHost is hosting.

ControlAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of the control on the form.

DisplayStyleToolStripItemDisplayStyle.

This property is not relevant to this class.

DoubleClickEnabledbool.

This property is not relevant to this class.

override
Enabledbool.

Gets or sets a value indicating whether the parent control of the System.Windows.Forms.ToolStripItem is enabled.

[read-only]
Focusedbool.

Gets a value indicating whether the control has input focus.

override
FontSystem.Drawing.Font.

Gets or sets the font to be used on the hosted control.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the hosted control.

override
ImageSystem.Drawing.Image.

The image associated with the object.

ImageAlignSystem.Drawing.ContentAlignment.

This property is not relevant to this class.

ImageScalingToolStripItemImageScaling.

This property is not relevant to this class.

ImageTransparentColorSystem.Drawing.Color.

This property is not relevant to this class.

override
RightToLeftRightToLeft.

Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

RightToLeftAutoMirrorImagebool.

This property is not relevant to this class.

[read-only]
override
Selectedbool.

Gets a value indicating whether the item is selected.

override
SiteSystem.ComponentModel.ISite.

Gets or sets the site of the hosted control.

override
SizeSystem.Drawing.Size.

Gets or sets the size of the System.Windows.Forms.ToolStripItem.

override
Textstring.

Gets or sets the text to be displayed on the hosted control.

TextAlignSystem.Drawing.ContentAlignment.

This property is not relevant to this class.

override
TextDirectionToolStripTextDirection.

This property is not relevant to this class.

TextImageRelationTextImageRelation.

This property is not relevant to this class.

Protected Properties

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

Public Methods

Focus()

Gives the focus to a control.

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a control can be fitted.

override
ResetBackColor()

This method is not relevant to this class.

override
ResetForeColor()

This method is not relevant to this class.

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ToolStripControlHost and optionally releases the managed resources.

override
OnBoundsChanged()

Occurs when the ToolStripItem.Bounds property changes.

OnEnter(EventArgs)

Raises the ToolStripControlHost.Enter event.

OnGotFocus(EventArgs)

Raises the ToolStripControlHost.GotFocus event.

OnHostedControlResize(EventArgs)

Synchronizes the resizing of the control host with the resizing of the hosted control.

OnKeyDown(KeyEventArgs)

Raises the ToolStripControlHost.KeyDown event.

OnKeyPress(KeyPressEventArgs)

Raises the ToolStripControlHost.KeyPress event.

OnKeyUp(KeyEventArgs)

Raises the ToolStripControlHost.KeyUp event.

override
OnLayout(LayoutEventArgs)

Raises the Control.Layout event.

OnLeave(EventArgs)

Raises the ToolStripControlHost.Leave event.

OnLostFocus(EventArgs)

Raises the ToolStripControlHost.LostFocus event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

override
OnParentChanged(ToolStrip, ToolStrip)
Documentation for this section has not yet been entered.
OnSubscribeControlEvents(Control)

Subscribes events from the hosted control.

OnUnsubscribeControlEvents(Control)

Unsubscribes events from the hosted control.

OnValidated(EventArgs)

Raises the ToolStripControlHost.Validated event.

OnValidating(System.ComponentModel.CancelEventArgs)

Raises the ToolStripControlHost.Validating event.

override
ProcessCmdKey(ref Message, Keys) : bool
Documentation for this section has not yet been entered.
override
ProcessDialogKey(Keys) : bool

Processes a dialog key.

override
SetVisibleCore(bool)
Documentation for this section has not yet been entered.

Public Events

DisplayStyleChanged

This event is not relevant to this class.

Enter

Occurs when the hosted control is entered.

GotFocus

Occurs when the hosted control receives focus.

KeyDown

Occurs when a key is pressed and held down while the hosted control has focus.

KeyPress

Occurs when a key is pressed while the hosted control has focus.

KeyUp

Occurs when a key is released while the hosted control has focus.

Leave

Occurs when the input focus leaves the hosted control.

LostFocus

Occurs when the hosted control loses focus.

Validated

Occurs after the hosted control has been successfully validated.

Validating

Occurs while the hosted control is validating.