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.
這個介面是其基類的簡單擴充功能, 只新增兩個屬性來導覽樹狀結構階層: Children和Parent。This 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() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。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) |