Provides a base class for getting and setting option values for a designer.
Assembly: System (in System.dll)
|CreateOptionCollection(DesignerOptionService.DesignerOptionCollection, String, Object)|
Creates a new DesignerOptionService.DesignerOptionCollection with the given name and adds it to the given parent.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Populates a DesignerOptionService.DesignerOptionCollection.
Shows the options dialog box for the given object.
Returns a string that represents the current object.(Inherited from Object.)
Gets the value of an option defined in this package.
|IDesignerOptionService.SetOptionValue(String, String, Object)|
Sets the value of an option defined in this package.
Theclass provides a collection of options. Each of these option collections has an indexer that enables it to be further filtered. Each option collection contains its own set of options, as well as a rollup of all of its child options. In the event of a naming conflict between properties, the outermost options object takes precedence. The following Tools | Options user interface (UI) structure shows how the outermost options object takes on greater importance:
WindowsFormsDesigner | General
This works, until you want to move GridSize to another page. Also, IDesignerOptionService provides no discovery mechanism. If you do not know what string to pass in, the service cannot find the property value.
The DesignerOptionService.DesignerOptionCollection object that marks the collection as expandable. With this type converter, you can pass the entire designer option service to a property window and visually inspect the service.class addresses these issues. You can query collections, and there is a type converter defined on the
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.