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
继承
实现

注解

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

You can associate a designer with a type using a DesignerAttribute. 有关自定义设计时间行为的概述,请参阅 扩展Design-Time支持

构造函数

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

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)

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

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

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

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

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

(继承自 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

GetGlyphs(GlyphSelectionType)

获取一个 Glyph 对象的集合,其中的 Glyph 对象表示标准控件的选择边框和抓取手柄。

(继承自 ParentControlDesigner)
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)

获取指定 InheritanceAttributeComponentDesigner

(继承自 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)

允许设计器从通过 TypeDescriptor 公开的特性集中更改或移除项。

(继承自 ComponentDesigner)
PostFilterEvents(IDictionary)

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

(继承自 ComponentDesigner)
PostFilterProperties(IDictionary)

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

(继承自 ComponentDesigner)
PreFilterAttributes(IDictionary)

允许设计器在通过 TypeDescriptor 公开的特性集中添加项。

(继承自 ComponentDesigner)
PreFilterEvents(IDictionary)

允许设计器在通过 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)

适用于

另请参阅