通过


DocumentDesigner 类

定义

用于扩展设计模式行为的基设计器类,并提供根级设计模式视图,该 Control 视图支持嵌套控件,并且应接收滚动消息。

public ref class DocumentDesigner : System::Windows::Forms::Design::ScrollableControlDesigner, IDisposable, System::ComponentModel::Design::IRootDesigner, System::Drawing::Design::IToolboxUser
public class DocumentDesigner : System.Windows.Forms.Design.ScrollableControlDesigner, IDisposable, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser
type DocumentDesigner = class
    inherit ScrollableControlDesigner
    interface IRootDesigner
    interface IDesigner
    interface IDisposable
    interface IToolboxUser
Public Class DocumentDesigner
Inherits ScrollableControlDesigner
Implements IDisposable, IRootDesigner, IToolboxUser
继承
实现

注解

此设计器是根设计器,这意味着在设计模式下查看关联文档时,它为关联的文档提供根级设计模式视图。

可以使用 将设计器与类型 相关联。

构造函数

名称 说明
DocumentDesigner()

初始化 DocumentDesigner 类的新实例。

字段

名称 说明
accessibilityObj

指定设计器的辅助功能对象。

(继承自 ControlDesigner)
menuEditorService

将 menuEditorService 变量初始化为 null.

属性

名称 说明
AccessibilityObject

AccessibleObject获取分配给控件的控件。

(继承自 ControlDesigner)
ActionLists

获取与设计器关联的组件支持的设计时操作列表。

(继承自 ComponentDesigner)
AllowControlLasso

获取一个值,该值指示是否将重新设置所选控件的父级。

(继承自 ParentControlDesigner)
AllowGenericDragBox

获取一个值,该值指示在设计器图面上拖动工具箱项时是否应绘制泛型拖动框。

(继承自 ParentControlDesigner)
AllowSetChildIndexOnDrop

获取一个值,该值指示在拖放 ParentControlDesigner控件时是否应保留拖动控件的 z 顺序。

(继承自 ParentControlDesigner)
AssociatedComponents

获取与设计器管理的组件关联的组件的集合。

(继承自 ControlDesigner)
AutoResizeHandles

获取或设置一个值,该值指示重设大小句柄分配是否取决于属性的值 AutoSize

(继承自 ControlDesigner)
BehaviorService

BehaviorService从设计环境获取。

(继承自 ControlDesigner)
Component

获取此设计器正在设计的组件。

(继承自 ComponentDesigner)
Control

获取设计器正在设计的控件。

(继承自 ControlDesigner)
DefaultControlLocation

获取添加到设计器中的控件的默认位置。

(继承自 ParentControlDesigner)
DrawGrid

获取或设置一个值,该值指示是否应在此设计器的控件上绘制网格。

(继承自 ParentControlDesigner)
EnableDragRect

获取一个值,该值指示拖动矩形是否由设计器绘制。

(继承自 ParentControlDesigner)
GridSize

获取或设置设计器处于网格绘制模式时绘制的网格的每个平方的大小。

(继承自 ParentControlDesigner)
InheritanceAttribute

InheritanceAttribute获取设计器。

(继承自 ControlDesigner)
Inherited

获取一个值,该值指示是否继承此组件。

(继承自 ComponentDesigner)
MouseDragTool

获取一个值,该值指示设计器在拖动操作期间是否具有有效的工具。

(继承自 ParentControlDesigner)
ParentComponent

获取 . 的 ControlDesigner父组件。

(继承自 ControlDesigner)
ParticipatesWithSnapLines

获取一个值, ControlDesigner 该值指示拖动操作期间是否允许对齐线对齐。

(继承自 ControlDesigner)
SelectionRules

获取 SelectionRules 设计器。

SetTextualDefaultProperty

用于扩展设计模式行为的基设计器类,并提供根级设计模式视图,该 Control 视图支持嵌套控件,并且应接收滚动消息。

(继承自 ComponentDesigner)
ShadowProperties

获取替代用户设置的属性值的集合。

(继承自 ComponentDesigner)
SnapLines

获取表示此控件的重要对齐点的对象列表 SnapLine

(继承自 ParentControlDesigner)
Verbs

获取与设计器关联的组件支持的设计时谓词。

(继承自 ComponentDesigner)

方法

名称 说明
AddPaddingSnapLines(ArrayList)

添加填充对齐线。

(继承自 ParentControlDesigner)
BaseWndProc(Message)

处理Windows消息。

(继承自 ControlDesigner)
CanAddComponent(IComponent)

将组件添加到父容器时调用。

(继承自 ParentControlDesigner)
CanBeParentedTo(IDesigner)

指示此设计器的控件是否可以由指定设计器的控件进行父级。

(继承自 ControlDesigner)
CanParent(Control)

指示指定的控件是否可以是此设计器管理的控件的子级。

(继承自 ParentControlDesigner)
CanParent(ControlDesigner)

指示指定设计器管理的控件是否可以是此设计器管理的控件的子级。

(继承自 ParentControlDesigner)
CreateTool(ToolboxItem, Point)

从指定的工具创建组件或控件,并将其添加到指定位置的当前设计文档。

(继承自 ParentControlDesigner)
CreateTool(ToolboxItem, Rectangle)

从指定工具创建组件或控件,并将其添加到指定矩形边界内的当前设计文档。

(继承自 ParentControlDesigner)
CreateTool(ToolboxItem)

从指定的工具创建组件或控件,并将其添加到当前设计文档中。

(继承自 ParentControlDesigner)
CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean)

为所有方法提供核心功能 CreateTool(ToolboxItem)

(继承自 ParentControlDesigner)
DefWndProc(Message)

为Windows消息提供默认处理。

(继承自 ControlDesigner)
DisplayError(Exception)

向用户显示有关指定异常的信息。

(继承自 ControlDesigner)
Dispose()

释放该 ComponentDesigner命令使用的所有资源。

(继承自 ComponentDesigner)
Dispose(Boolean)

释放由托管资源使用 DocumentDesigner 的非托管资源,并选择性地释放托管资源。

DoDefaultAction()

在组件的源代码文件中为默认事件创建方法签名,并将用户的光标导航到该位置。

(继承自 ComponentDesigner)
EnableDesignMode(Control, String)

为子控件启用设计时功能。

(继承自 ControlDesigner)
EnableDragDrop(Boolean)

启用或禁用对所设计的控件的拖放支持。

(继承自 ControlDesigner)
EnsureMenuEditorService(IComponent)

检查菜单编辑器服务是否存在,如果不存在菜单编辑器服务,请创建一个。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetControl(Object)

从指定组件的设计器中获取控件。

(继承自 ParentControlDesigner)
GetControlGlyph(GlyphSelectionType)

获取表示控件边界的正文标志符号。

(继承自 ParentControlDesigner)
GetGlyphs(GlyphSelectionType)

获取一个 GlyphCollection 表示 Glyph 对象。

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetHitTest(Point)

指示控件是否应处理指定点处的鼠标单击。

(继承自 ScrollableControlDesigner)
GetParentForComponent(IComponent)

派生类用于确定它是否返回正在设计的控件或其他控件 Container ,同时向其添加组件。

(继承自 ParentControlDesigner)
GetService(Type)

尝试从设计器组件的设计模式站点检索指定的服务类型。

(继承自 ComponentDesigner)
GetToolSupported(ToolboxItem)

指示设计器是否支持指定的工具。

GetType()

获取当前实例的 Type

(继承自 Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

更新指定矩形的位置,在启用网格对齐模式时调整其网格对齐方式。

(继承自 ParentControlDesigner)
HookChildControls(Control)

将消息从指定控件的子控件路由到设计器。

(继承自 ControlDesigner)
Initialize(IComponent)

使用指定的组件初始化设计器。

InitializeExistingComponent(IDictionary)

重新初始化现有组件。

(继承自 ControlDesigner)
InitializeNewComponent(IDictionary)

初始化新创建的组件。

(继承自 ParentControlDesigner)
InitializeNonDefault()

将控件的属性初始化为任何非默认值。

(继承自 ControlDesigner)
InternalControlDesigner(Int32)

返回具有指定索引的内部 ControlDesigner控件设计器。

(继承自 ControlDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner)

InheritanceAttribute获取指定的 ComponentDesigner

(继承自 ComponentDesigner)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
NumberOfInternalControlDesigners()

返回内部控件设计器的数目 ControlDesigner

(继承自 ControlDesigner)
OnContextMenu(Int32, Int32)

应显示上下文菜单时调用。

OnCreateHandle()

创建设计器的句柄后立即调用。

OnDragComplete(DragEventArgs)

调用以清理拖放操作。

(继承自 ParentControlDesigner)
OnDragDrop(DragEventArgs)

当拖放对象放置到控件设计器视图中时调用。

(继承自 ParentControlDesigner)
OnDragEnter(DragEventArgs)

当拖放操作进入控件设计器视图时调用。

(继承自 ParentControlDesigner)
OnDragLeave(EventArgs)

当拖放操作离开控件设计器视图时调用。

(继承自 ParentControlDesigner)
OnDragOver(DragEventArgs)

当拖放对象拖动到控件设计器视图上时调用。

(继承自 ParentControlDesigner)
OnGiveFeedback(GiveFeedbackEventArgs)

当拖放操作正在进行时调用,以便根据鼠标的位置提供视觉提示,而拖动操作正在进行中。

(继承自 ParentControlDesigner)
OnMouseDragBegin(Int32, Int32)

调用以响应在组件上按下和按住的鼠标左键。

(继承自 ParentControlDesigner)
OnMouseDragEnd(Boolean)

在拖放操作结束时调用以完成或取消操作。

(继承自 ParentControlDesigner)
OnMouseDragMove(Int32, Int32)

在拖放操作期间调用鼠标的每个移动。

(继承自 ParentControlDesigner)
OnMouseEnter()

当鼠标首次进入控件时调用。

(继承自 ParentControlDesigner)
OnMouseHover()

在鼠标悬停在控件上后调用。

(继承自 ParentControlDesigner)
OnMouseLeave()

当鼠标首次进入控件时调用。

(继承自 ParentControlDesigner)
OnPaintAdornments(PaintEventArgs)

当设计器所管理的控件绘制其图面时调用,以便设计器可以在控件顶部绘制任何其他装饰。

(继承自 ParentControlDesigner)
OnSetComponentDefaults()
已过时.
已过时.

初始化设计器时调用。

(继承自 ControlDesigner)
OnSetCursor()

提供更改当前鼠标光标的机会。

(继承自 ParentControlDesigner)
PostFilterAttributes(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的属性集中更改或删除项。

(继承自 ComponentDesigner)
PostFilterEvents(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的事件集中更改或删除项。

(继承自 ComponentDesigner)
PostFilterProperties(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的属性集中更改或删除项。

(继承自 ComponentDesigner)
PreFilterAttributes(IDictionary)

允许设计器添加到它通过 a TypeDescriptor. 公开的属性集。

(继承自 ComponentDesigner)
PreFilterEvents(IDictionary)

允许设计器添加到它通过 a TypeDescriptor. 公开的事件集。

(继承自 ComponentDesigner)
PreFilterProperties(IDictionary)

调整组件通过 . TypeDescriptor. 公开的属性集。

RaiseComponentChanged(MemberDescriptor, Object, Object)

通知 IComponentChangeService 此组件已更改。

(继承自 ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

通知 IComponentChangeService 此组件即将更改。

(继承自 ComponentDesigner)
ToolPicked(ToolboxItem)

选择指定的工具。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
UnhookChildControls(Control)

将指定控件的子级的消息路由到每个控件而不是父设计器。

(继承自 ControlDesigner)
WndProc(Message)

处理Windows消息。

WndProc(Message)

处理Windows消息,并在设计时将WM_HSCROLL和WM_VSCROLL消息传递给控件。

(继承自 ScrollableControlDesigner)

显式接口实现

名称 说明
IDesignerFilter.PostFilterAttributes(IDictionary)

有关此成员的说明,请参阅 PostFilterAttributes(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

有关此成员的说明,请参阅 PostFilterEvents(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

有关此成员的说明,请参阅 PostFilterProperties(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

有关此成员的说明,请参阅 PreFilterAttributes(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

有关此成员的说明,请参阅 PreFilterEvents(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

有关此成员的说明,请参阅 PreFilterProperties(IDictionary) 方法。

(继承自 ComponentDesigner)
IRootDesigner.GetView(ViewTechnology)

有关此成员的说明,请参阅 ViewTechnology

IRootDesigner.SupportedTechnologies

有关此成员的说明,请参阅 SupportedTechnologies

IToolboxUser.GetToolSupported(ToolboxItem)

有关此成员的说明,请参阅 GetToolSupported(ToolboxItem)

IToolboxUser.ToolPicked(ToolboxItem)

有关此成员的说明,请参阅 ToolPicked(ToolboxItem)

ITreeDesigner.Children

有关此成员的说明,请参阅 Children 该属性。

(继承自 ComponentDesigner)
ITreeDesigner.Parent

有关此成员的说明,请参阅 Parent 该属性。

(继承自 ComponentDesigner)

适用于

另请参阅