ITreeDesigner 接口

定义

为建立一组相关的自定义设计器提供支持。Provides support for building a set of related custom designers.

public interface class ITreeDesigner : IDisposable, System::ComponentModel::Design::IDesigner
public interface ITreeDesigner : IDisposable, System.ComponentModel.Design.IDesigner
type ITreeDesigner = interface
    interface IDesigner
    interface IDisposable
Public Interface ITreeDesigner
Implements IDesigner, IDisposable
派生
实现

注解

ITreeDesigner 接口派生自 IDesigner 接口,为相关设计器的层次结构提供灵活的导航支持。The ITreeDesigner interface derives from the IDesigner interface and provides support for flexibly navigating a hierarchy of related designers. 使用此接口,程序员可以为组件提供多个设计器,并动态确定相应的设计器。With this interface, a programmer can supply a number of designers for the component, with the appropriate one being determined dynamically.

此接口是其基类的简单扩展,只添加两个用于导航树层次结构的属性: ChildrenParentThis interface is a simple extension of its base class, adding just two properties for navigating a tree hierarchy: Children and Parent.

有关创建设计组件的概述,请参阅扩展设计时支持For an overview of creating design components, see Extending Design-Time Support.

属性

Children

获取子设计器的集合。Gets a collection of child designers.

Component

获取此设计器正在设计的基组件。Gets the base component that this designer is designing.

(继承自 IDesigner)
Parent

获取父设计器。Gets the parent designer.

Verbs

获取设计器支持的设计时谓词的集合。Gets a collection of the design-time verbs supported by the designer.

(继承自 IDesigner)

方法

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(继承自 IDisposable)
DoDefaultAction()

执行此设计器的默认行为。Performs the default action for this designer.

(继承自 IDesigner)
Initialize(IComponent)

使用指定的组件初始化设计器。Initializes the designer with the specified component.

(继承自 IDesigner)

适用于

另请参阅