IWindowsFormsEditorService.DropDownControl(Control) 方法

定义

在提供此服务的属性网格的值字段下方的下拉区域中显示指定的控件。

public:
 void DropDownControl(System::Windows::Forms::Control ^ control);
public void DropDownControl(System.Windows.Forms.Control control);
public void DropDownControl(System.Windows.Forms.Control? control);
abstract member DropDownControl : System.Windows.Forms.Control -> unit
Public Sub DropDownControl (control As Control)

参数

control
Control

要打开的下拉列表 Control

注解

EditValue方法UITypeEditor可以调用此方法,以在托管使用此服务的编辑器的属性网格的下拉区域中显示指定的控件。

如果可能,将维护控件的尺寸。 如果由于屏幕布局而无法执行此操作,可能会调整控件的大小。 若要确保控件调整大小,应实现停靠和定位,并可能实现任何调整大小的事件处理程序更新代码。 如果用户执行导致下拉列表关闭的操作,则控件将隐藏并被垃圾回收处理(如果没有对控件的其他存储引用)。

适用于