ControlDesigner.EnableDragDrop(Boolean) 方法

定义

启用或禁用对正在设计的控件的拖放支持。Enables or disables drag-and-drop support for the control being designed.

protected:
 void EnableDragDrop(bool value);
protected void EnableDragDrop (bool value);
member this.EnableDragDrop : bool -> unit
Protected Sub EnableDragDrop (value As Boolean)

参数

value
Boolean

要启用对控件的拖放支持,则为 true;如果该控件不应有拖放支持,则为 falsetrue to enable drag-and-drop support for the control; false if the control should not have drag-and-drop support. 默认值为 falseThe default is false.

注解

false 的默认值指定在设计时不能将控件拖到控件上。The default value of false specifies that a control cannot have children dragged onto it at design time. 若要在设计时允许控件作为其他控件的父级,请将该控件与派生自 ParentControlDesigner的设计器相关联。To allow a control to parent other controls at design time, associate it with a designer that derives from ParentControlDesigner.

适用于