System.Windows.Forms.Design.IWindowsFormsEditorService

Provides an interface for a System.Drawing.Design.UITypeEditor to display Windows Forms or to display a control in a drop-down area from a property grid control in design mode.

See Also: IWindowsFormsEditorService Members

Syntax

public interface IWindowsFormsEditorService

Remarks

The System.Windows.Forms.Design.IWindowsFormsEditorService is only available through the IServiceProvider.GetService(Type) method of the System.Windows.Forms.PropertyGrid control.

This service is typically used to display a form from the System.Drawing.Design.UITypeEditor.EditValue(IServiceProvider, object) method of a System.Drawing.Design.UITypeEditor. When a System.Windows.Forms.PropertyGrid invokes the System.Drawing.Design.UITypeEditor.EditValue(IServiceProvider, object) method of a System.Drawing.Design.UITypeEditor to provide a user interface for editing the value of a property, the System.Drawing.Design.UITypeEditor.EditValue(IServiceProvider, object) method is passed a reference to an IServiceProvider that can typically provide an instance of the System.Windows.Forms.Design.IWindowsFormsEditorService. The methods of this service can be used to display dialog boxes and forms, or to show a System.Windows.Forms.Control within a drop down container that is shown on top of the property grid near the area of the value field whose value is being edited.

Requirements

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