IWindowsFormsEditorService 接口

位于命名空间:using System.Windows.Forms.Design;
为 UITypeEditors 提供接口,用于显示 Windows 窗体,或者在设计模式下在属性网格控件的下拉区域中显示控件。

有关此类型所有成员的列表,请参阅 IWindowsFormsEditorService 成员

[Visual Basic]
Public Interface IWindowsFormsEditorService
[C#]
public interface IWindowsFormsEditorService
[C++]
public __gc __interface IWindowsFormsEditorService
[JScript]
public interface IWindowsFormsEditorService

备注

IWindowsFormsEditorService 只能通过 PropertyGrid 控件的 GetService 方法使用。

此服务通常用于显示来自 UITypeEditorEditValue 方法的窗体。当 PropertyGrid 调用 UITypeEditorEditValue 方法来提供用于编辑属性值的用户界面时,会将对 IServiceProvider 的引用传递给 EditValue 方法,IServiceProvider 通常可提供 IWindowsFormsEditorService 的实例。此服务的方法可用于显示对话框和窗体,或者用于在下拉容器内显示 Control,该容器显示在当前正在编辑的值字段区域附近的属性网格的顶部。

原文地址:https://www.cnblogs.com/kingeric/p/633570.html