ComponentTray | marshal by reference, disposable |
System.Windows.Forms.Design (system.design.dll) | class |
This Control implements the component tray portion
of the forms designer.
You can retrieve the number of components in the tray using the
ComponentCount property. The icons can be
automatically lined up using the AutoArrange
property, and their appearance can be modified with
ShowLargeIcons. The position of an individual icon
can be set using SetLocation().
The components themselves can be added using
CreateComponentFromTool() and removed using
RemoveComponent().
public class ComponentTray : System.Windows.Forms.ScrollableControl : System.ComponentModel.IExtenderProvider,
ISelectionUIHandler, IOleDragClient {
// Public Constructors
public ComponentTray(System.ComponentModel.Design.IDesigner mainDesigner, IServiceProvider serviceProvider);
// Public Instance Properties
public bool AutoArrange{set; get; }
public int ComponentCount{get; }
public bool ShowLargeIcons{set; get; }
// Public Instance Methods
public virtual void AddComponent(System.ComponentModel.IComponent component);
public void CreateComponentFromTool(System.Drawing.Design.ToolboxItem tool);
public Point GetLocation(System.ComponentModel.IComponent receiver);
public virtual void RemoveComponent(System.ComponentModel.IComponent component);
public void SetLocation(System.ComponentModel.IComponent receiver, System.Drawing.Point location);
// Protected Instance Methods
protected virtual bool CanCreateComponentFromTool(System.Drawing.Design.ToolboxItem tool);
protected virtual bool CanDisplayComponent(System.ComponentModel.IComponent component);
protected void DisplayError(Exception e);
// overrides System.Windows.Forms.Control
// overrides System.ComponentModel.Component
// overrides System.Windows.Forms.Control
protected override void OnDragDrop(
// overrides System.Windows.Forms.Control
protected override void OnDragEnter(
// overrides System.Windows.Forms.Control
// overrides System.Windows.Forms.Control
protected override void OnDragOver(
// overrides System.Windows.Forms.Control
protected override void OnGiveFeedback(
// overrides System.Windows.Forms.Control
protected override void OnLayout(
// overrides System.Windows.Forms.ScrollableControl
protected virtual void OnLostCapture();
protected override void OnMouseDown(
// overrides System.Windows.Forms.Control
protected override void OnMouseMove(
// overrides System.Windows.Forms.Control
protected override void OnMouseUp(
// overrides System.Windows.Forms.Control
protected override void OnPaint(
// overrides System.Windows.Forms.Control
protected virtual void OnSetCursor();
protected override void WndProc(
// overrides System.Windows.Forms.ScrollableControl
}
Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component(System.ComponentModel.ICompone,
System.IDisposable)
System.Windows.Forms.Control(System.Windows.Forms.IOleContr,
System.Windows.Forms.IOleObject,
System.Windows.Forms.IOleInPlaceObject,
System.Windows.Forms.IOleInPlaceActiveObject,
System.Windows.Forms.IOleWindow,
System.Windows.Forms.IViewObject,
System.Windows.Forms.IViewObject2,
System.Windows.Forms.IPersist,
System.Windows.Forms.IPersistStreamInit,
System.Windows.Forms.IPersistPropertyBag,
System.Windows.Forms.IPersistStorage,
System.Windows.Forms.IQuickActivate,
System.ComponentModel.ISynchronizeInvoke,
System.Windows.Forms.IWin32Window)
System.Windows.Forms.ScrollableControl ComponentTray(System.ComponentModel.IExtenderProvid,
ISelectionUIHandler,
IOleDragClient)
|