This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ComponentDesigner Members
Public:
Constructor
Properties
Component |
Gets or sets the component this designer is designing. |
Verbs |
Gets the design-time verbs supported by the component associated with the designer. The verbs returned by this method are typically displayed in a right-click menu by the design-time environment. The return value may be null if the component has no design-time verbs. When a user selects one of the verbs, the performVerb() method is invoked with the the corresponding DesignerVerb object. NOTE: A design-time environment will typically provide a "Properties..." entry on a component's right-click menu. The getVerbs() method should therefore not include such an entry in the returned list of verbs. |
Methods
Dispose |
Disposes of the resources (other than memory) used by the ComponentDesigner. |
DoDefaultAction |
This creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Initialize |
Establishes the component for this designer. The designer host will set this when it is ready for the designer to be used. |
OnSetComponentDefaults |
Called when the designer is intialized. This allows the designer to provide some meaningful default values in the component. The default implementation of this sets the components's default property to it's name, if that property is a string. |
PostFilterAttributes |
Allows a designer to filter the set of member attributes the component it is designing will expose through the TypeDescriptor object. This method is called immediately after its corresponding "Pre" method. If you are overriding this method you should call the the base implementation after you perform your own filtering. |
PostFilterEvents |
Allows a designer to filter the set of events the component it is designing will expose through the TypeDescriptor object. This method is called immediately after its corresponding "Pre" method. If you are overriding this method you should call the the base implementation after you perform your own filtering. |
PostFilterProperties |
Allows a designer to filter the set of properties the component it is designing will expose through the TypeDescriptor object. This method is called immediately after its corresponding "Pre" method. If you are overriding this method you should call the the base implementation after you perform your own filtering. |
PreFilterAttributes |
Allows a designer to filter the set of member attributes the component it is designing will expose through the TypeDescriptor object. This method is called immediately before its corresponding "Post" method. If you are overriding this method you should call the base implementation before you perform your own filtering. |
PreFilterEvents |
Allows a designer to filter the set of events the component it is designing will expose through the TypeDescriptor object. This method is called immediately before its corresponding "Post" method. If you are overriding this method you should call the base implementation before you perform your own filtering. |
PreFilterProperties |
Allows a designer to filter the set of properties the component it is designing will expose through the TypeDescriptor object. This method is called immediately before its corresponding "Post" method. If you are overriding this method you should call the base implementation before you perform your own filtering. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Properties
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
GetDefaultValue |
Retrieves the default value for the given property. If there is no default value attribute, this will assume that comp already contains the default value and request the value directly from it. |
GetServiceObject |
Provides a way for a designer to get services from the hosting environment. The default implementation of this requests the service from the compoent's site. |
InvokeGetInheritanceAttribute |
[To be supplied.] |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
OnInitializeShadowProperties |
Called when the designer is intialized. This allows the designer to initialize the values of any shadow properties it has. |
RaiseComponentChanged |
Notifies the IComponentChangeService that this component has been changed. You only need to call this when you are affecting component properties directly and not through the MemberDescriptor's accessors. |
RaiseComponentChanging |
Notifies the IComponentChangeService that this component is about to be changed. You only need to call this when you are affecting component properties directly and not through the MemberDescriptor's accessors. |
SetPropertyWithUndo |
Overloaded. [To be supplied.] |
See Also
ComponentDesigner Class | System.ComponentModel.Design Namespace