ToolboxComponentsCreatingEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the ComponentsCreating event that occurs when components are added to the toolbox.
public ref class ToolboxComponentsCreatingEventArgs : EventArgs
public class ToolboxComponentsCreatingEventArgs : EventArgs
type ToolboxComponentsCreatingEventArgs = class
inherit EventArgs
Public Class ToolboxComponentsCreatingEventArgs
Inherits EventArgs
- Inheritance
Examples
The following example method returns a ToolboxComponentsCreatingEventArgs that indicates the designer host that is about to receive a new component or set of components:
ToolboxComponentsCreatingEventArgs^ CreateToolboxComponentsCreatingEventArgs( System::ComponentModel::Design::IDesignerHost^ host )
{
ToolboxComponentsCreatingEventArgs^ e = gcnew ToolboxComponentsCreatingEventArgs( host );
// The designer host of the document receiving the components e.DesignerHost
return e;
}
public ToolboxComponentsCreatingEventArgs CreateToolboxComponentsCreatingEventArgs(System.ComponentModel.Design.IDesignerHost host)
{
ToolboxComponentsCreatingEventArgs e = new ToolboxComponentsCreatingEventArgs(host);
// The designer host of the document receiving the components e.DesignerHost
return e;
}
Public Function CreateToolboxComponentsCreatingEventArgs(ByVal host As System.ComponentModel.Design.IDesignerHost) As ToolboxComponentsCreatingEventArgs
Dim e As New ToolboxComponentsCreatingEventArgs(host)
' The designer host of the document receiving the components e.DesignerHost
Return e
End Function
Remarks
The ComponentsCreating event is raised when components are about to be added to the toolbox. ToolboxComponentsCreatingEventArgs provides data indicating the designer that has requested that the components be added.
Constructors
ToolboxComponentsCreatingEventArgs(IDesignerHost) |
Initializes a new instance of the ToolboxComponentsCreatingEventArgs class. |
Properties
DesignerHost |
Gets or sets an instance of the IDesignerHost that made the request to create toolbox components. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |