ParentControlDesigner 成员

扩展支持嵌套控件的 Control 的设计模式行为。

下表列出了由 ParentControlDesigner 类型公开的成员。

公共构造函数

  名称 说明
Public method ParentControlDesigner 初始化 ParentControlDesigner 类的新实例。

页首

受保护的字段

  名称 说明
Protected field accessibilityObj  为设计器指定可访问对象。(从 ControlDesigner 继承。)

页首

公共属性

(请参见 受保护的属性 )

  名称 说明
Public property AccessibilityObject  获取分配给该控件的 AccessibleObject。(从 ControlDesigner 继承。)
Public property ActionLists  获取与设计器相关联的组件所支持的设计时操作列表。(从 ComponentDesigner 继承。)
Public property AssociatedComponents  获取与设计器所管理的组件关联的组件集合。(从 ControlDesigner 继承。)
Public property AutoResizeHandles  获取或设置一个值,该值指示调整手柄的分配是否取决于 AutoSize 属性的值。 (从 ControlDesigner 继承。)
Public property Component  获取此设计器正在设计的组件。(从 ComponentDesigner 继承。)
Public property Control  获取设计器正在设计的控件。(从 ControlDesigner 继承。)
Public property ParticipatesWithSnapLines  获取一个值,该值指示在拖动操作期间 ControlDesigner 是否允许按对齐线对齐。(从 ControlDesigner 继承。)
Public property SelectionRules  获取指示组件的移动功能的选择规则。(从 ControlDesigner 继承。)
Public property SnapLines 已重写。获取表示此控件的重要对齐点的 SnapLine 对象的列表。
Public property Verbs  获取与设计器相关联的组件所支持的设计时谓词。(从 ComponentDesigner 继承。)

页首

受保护的属性

  名称 说明
Protected property AllowControlLasso 获取一个值,该值指示选择的控件是否重新设置为父级。
Protected property AllowGenericDragBox 获取一个值,指示拖动工具箱项悬停于设计器图面上时是否应绘制一般拖动框。
Protected property AllowSetChildIndexOnDrop 获取一个值,指示控件拖放到 ParentControlDesigner 上时是否应保持其 z-顺序。
Protected property BehaviorService  从设计环境获取 BehaviorService。(从 ControlDesigner 继承。)
Protected property DefaultControlLocation 获取已添至设计器的控件的默认位置。
Protected property DrawGrid 获取或设置一个值,该值指示是否应为此设计器在控件上绘制网格。
Protected property EnableDragRect 已重写。获取一个值,该值指示设计器是否绘制拖动矩形。
Protected property GridSize 获取或设置网格的各个方格的大小,该网格在设计器处于网格绘制模式时绘制。
Protected property InheritanceAttribute  获取设计器的 System.ComponentModel.InheritanceAttribute。(从 ControlDesigner 继承。)
Protected property Inherited  获取一个值,该值指示是否继承此组件。(从 ComponentDesigner 继承。)
Protected property MouseDragTool 获取一个值,该值指示在拖动操作过程中设计器是否具有一个有效工具。
Protected property ParentComponent  获取 ControlDesigner 的父组件。(从 ControlDesigner 继承。)
Protected property ShadowProperties  获取重写用户设置的属性值的集合。(从 ComponentDesigner 继承。)

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method CanBeParentedTo  指示指定设计器的控件是否可以成为此设计器控件的父级。 (从 ControlDesigner 继承。)
Public method CanParent 已重载。 指示指定的控件是否可以是由某个设计器管理的控件的子级。
Public method Dispose 已重载。 释放由 ParentControlDesigner 占用的非托管资源,还可以另外再释放托管资源。
Public method DoDefaultAction  在源代码文件中为组件的默认事件创建方法签名,并将用户的光标定位到该位置。 (从 ComponentDesigner 继承。)
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetGlyphs 已重写。 获取一个 Glyph 对象的集合,Glyph 对象表示标准控件的选择边框和抓取手柄。
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Initialize 已重写。 用指定的组件初始化设计器。
Public method InitializeExistingComponent  重新初始化现有组件。 (从 ControlDesigner 继承。)
Public method InitializeNewComponent 已重写。 
Public method InitializeNonDefault  对已初始化为非默认设置的导入组件的设置进行初始化。 (从 ComponentDesigner 继承。)
Public method InternalControlDesigner  返回 ControlDesigner 中具有指定索引的内部控件设计器。 (从 ControlDesigner 继承。)
Public method NumberOfInternalControlDesigners  返回 ControlDesigner 中内部控件设计器的数目。 (从 ControlDesigner 继承。)
Public method OnSetComponentDefaults  在设计器初始化时调用。 (从 ControlDesigner 继承。)
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method AddPaddingSnapLines 添加填充对齐线。
Protected method BaseWndProc  处理 Windows 消息。 (从 ControlDesigner 继承。)
Protected method CreateTool 已重载。 从指定工具创建一个组件或控件并将其添加到当前的设计文档。
Protected method CreateToolCore 为所有的 CreateTool 方法提供核心功能。
Protected method DefWndProc  提供对 Windows 消息的默认处理。 (从 ControlDesigner 继承。)
Protected method DisplayError  向用户显示有关所指定异常的信息。 (从 ControlDesigner 继承。)
Protected method Dispose 已重载。 已重写。 释放由 ParentControlDesigner 占用的非托管资源,还可以另外再释放托管资源。
Protected method EnableDesignMode  启用子控件的设计时功能。 (从 ControlDesigner 继承。)
Protected method EnableDragDrop  启用或禁用对正在设计的控件的拖放支持。 (从 ControlDesigner 继承。)
Protected method Finalize  在垃圾回收将对象回收之前,尝试通过调用 Dispose(false) 来释放资源。 (从 ComponentDesigner 继承。)
Protected method GetControl 从所指定组件的设计器中获取控件。
Protected method GetControlGlyph 已重写。 获取表示控件的边界的主体标志符号。
Protected method GetHitTest  指示该控件是否应处理在指定点单击鼠标的操作。 (从 ControlDesigner 继承。)
Protected method GetParentForComponent 由基类用来确定在向其添加组件时是否返回正在设计的控件或其他某个 Container
Protected method GetService  尝试从设计器组件的设计模式站点检索指定类型的服务。 (从 ComponentDesigner 继承。)
Protected method GetUpdatedRect 更新所指定矩形的位置,如果启用了网格对齐模式,则对其进行调整以便对齐网格。
Protected method HookChildControls  将来自指定控件的子控件的消息路由到设计器。 (从 ControlDesigner 继承。)
Protected method Static InvokeCreateTool 从指定的 ToolboxItem 创建工具。
Protected method InvokeGetInheritanceAttribute  获取指定 ComponentDesignerInheritanceAttribute。 (从 ComponentDesigner 继承。)
Protected method MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)
Protected method OnContextMenu  显示上下文菜单,并提供在上下文菜单将要显示时执行附加处理的机会。 (从 ControlDesigner 继承。)
Protected method OnCreateHandle  提供在创建控件处理程序之后立即执行附加处理的机会。 (从 ControlDesigner 继承。)
Protected method OnDragComplete 已重写。 按顺序调用以清理拖放操作。
Protected method OnDragDrop 已重写。 在将拖放对象放置到控件设计器视图上时调用。
Protected method OnDragEnter 已重写。 在拖放操作进入控件设计器视图时调用。
Protected method OnDragLeave 已重写。 在拖放操作离开控件设计器视图时调用。
Protected method OnDragOver 已重写。 在控件设计器视图上拖动拖放对象时调用。
Protected method OnGiveFeedback  在进行拖放操作时接收调用,以在拖动操作进行的同时基于鼠标的位置提供可视提示。 (从 ControlDesigner 继承。)
Protected method OnMouseDragBegin 已重写。 调用以响应在组件上时按下鼠标左键并按住不放这一操作。
Protected method OnMouseDragEnd 已重写。 在拖放操作结束时调用,以完成或取消此次操作。
Protected method OnMouseDragMove 已重写。 为拖放操作期间鼠标的每一次移动而调用。
Protected method OnMouseEnter  当鼠标首次进入控件时接收调用。 (从 ControlDesigner 继承。)
Protected method OnMouseHover  鼠标在控件上悬停后接收调用。 (从 ControlDesigner 继承。)
Protected method OnMouseLeave  当鼠标首次进入控件时接收调用。 (从 ControlDesigner 继承。)
Protected method OnPaintAdornments 已重写。 当设计器正在管理的控件绘制了它的表面时调用,这样设计器就可以在控件顶部绘制任意附加装饰。
Protected method OnSetCursor 已重写。 提供更改当前鼠标光标的机会。
Protected method PostFilterAttributes  允许设计器从通过 TypeDescriptor 公开的属性集中更改或移除项。 (从 ComponentDesigner 继承。)
Protected method PostFilterEvents  允许设计器从通过 TypeDescriptor 公开的事件集中更改或移除项。 (从 ComponentDesigner 继承。)
Protected method PostFilterProperties  允许设计器从通过 TypeDescriptor 公开的属性集中更改或移除项。 (从 ComponentDesigner 继承。)
Protected method PreFilterAttributes  允许设计器在通过 TypeDescriptor 公开的属性集中添加项。 (从 ComponentDesigner 继承。)
Protected method PreFilterEvents  允许设计器在通过 TypeDescriptor 公开的事件集中添加项。 (从 ComponentDesigner 继承。)
Protected method PreFilterProperties 已重写。 调整该组件将通过 TypeDescriptor 公开的属性集。
Protected method RaiseComponentChanged  通知 IComponentChangeService 此组件已被更改。 (从 ComponentDesigner 继承。)
Protected method RaiseComponentChanging  通知 IComponentChangeService 此组件即将被更改。 (从 ComponentDesigner 继承。)
Protected method UnhookChildControls  将所指定控件的子级的消息路由到每个控件而不是路由到父级设计器。 (从 ControlDesigner 继承。)
Protected method WndProc  处理 Windows 消息,并可以选择将其路由到控件。 (从 ControlDesigner 继承。)

页首

请参见

参考

ParentControlDesigner 类
System.Windows.Forms.Design 命名空间
ControlDesigner 类
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute

其他资源

扩展设计时支持