System.Windows.Forms.Design.ComponentTray.GetNextComponent Method

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.

Syntax

public System.ComponentModel.IComponent GetNextComponent (System.ComponentModel.IComponent component, bool forward)

Parameters

component
The component from which to start enumerating.
forward
true to enumerate forward through the list; otherwise, false to enumerate backward.

Returns

The next component in the component tray, or null, if the end of the list is encountered (or the beginning, if forward is false).

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0