System.Windows.Forms.Design.ComponentTray: Method Members

The methods of System.Windows.Forms.Design.ComponentTray are listed below. For a list of all members, see the ComponentTray Members list.

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

Public Methods

AddComponent(System.ComponentModel.IComponent)

Adds a component to the tray.

CreateComponentFromTool(System.Drawing.Design.ToolboxItem)

Creates a component from the specified toolbox item, adds the component to the current document, and displays a representation for the component in the component tray.

GetLocation(System.ComponentModel.IComponent) : System.Drawing.Point

Gets the location of the specified component, relative to the upper-left corner of the component tray.

GetNextComponent(System.ComponentModel.IComponent, bool) : System.ComponentModel.IComponent

Similar to System.Windows.Forms.Control.GetNextControl(System.Windows.Forms.Control, bool), this method returns the next component in the tray, given a starting component.

GetTrayLocation(System.ComponentModel.IComponent) : System.Drawing.Point

Gets the value of the Location extender property.

IsTrayComponent(System.ComponentModel.IComponent) : bool

Tests a component for presence in the component tray.

RemoveComponent(System.ComponentModel.IComponent)

Removes the specified component from the tray.

SetLocation(System.ComponentModel.IComponent, System.Drawing.Point)

Sets the location of the specified component to the specified location.

SetTrayLocation(System.ComponentModel.IComponent, System.Drawing.Point)

Sets the value of the Location extender property.

Protected Methods

CanCreateComponentFromTool(System.Drawing.Design.ToolboxItem) : bool

Gets a value indicating whether the specified tool can be used to create a new component.

CanDisplayComponent(System.ComponentModel.IComponent) : bool

Gets a value indicating whether the specified component can be displayed.

DisplayError(Exception)

Displays an error message to the user with information about the specified exception.

override
Dispose(bool)

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

override
GetService(Type) : object

Gets the requested service type.

override
OnDoubleClick(EventArgs)
Documentation for this section has not yet been entered.
override
OnDragDrop(System.Windows.Forms.DragEventArgs)

Called when an object that has been dragged is dropped on the component tray.

override
OnDragEnter(System.Windows.Forms.DragEventArgs)

Called when an object is dragged over, and has entered the area over, the component tray.

override
OnDragLeave(EventArgs)

Called when an object is dragged out of the area over the component tray.

override
OnDragOver(System.Windows.Forms.DragEventArgs)

Called when an object is dragged over the component tray.

override
OnGiveFeedback(System.Windows.Forms.GiveFeedbackEventArgs)

Called during an OLE drag and drop operation to provide an opportunity for the component tray to give feedback to the user about the results of dropping the object at a specific point.

override
OnLayout(System.Windows.Forms.LayoutEventArgs)

Raises the System.Windows.Forms.Control.Layout event.

OnLostCapture()

Called when a mouse drag selection operation is canceled.

override
OnMouseDoubleClick(System.Windows.Forms.MouseEventArgs)

Called when the mouse is double clicked over the component tray.

override
OnMouseDown(System.Windows.Forms.MouseEventArgs)

Called when the mouse button is pressed.

override
OnMouseMove(System.Windows.Forms.MouseEventArgs)

Called when the mouse cursor position has changed.

override
OnMouseUp(System.Windows.Forms.MouseEventArgs)

Called when the mouse button has been released.

override
OnPaint(System.Windows.Forms.PaintEventArgs)

Called when the view for the component tray should be refreshed.

OnSetCursor()

Called to set the mouse cursor.

override
WndProc(ref System.Windows.Forms.Message)
Documentation for this section has not yet been entered.