NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentDesigner Methods

The methods of the ComponentDesigner class are listed below. For a complete list of ComponentDesigner class members, see the ComponentDesigner Members topic.

Public:

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:

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