ITemplateEditingFrame ITemplateEditingFrame ITemplateEditingFrame ITemplateEditingFrame Interface

定義

警告

此 API 現已淘汰。

提供一個管理樣板編輯區的介面。Provides an interface to manage a template editing area.

public interface class ITemplateEditingFrame : IDisposable
[System.Obsolete("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public interface ITemplateEditingFrame : IDisposable
type ITemplateEditingFrame = interface
    interface IDisposable
Public Interface ITemplateEditingFrame
Implements IDisposable
屬性
實作

備註

注意

ITemplateEditingFrame 介面已經過時。The ITemplateEditingFrame interface is obsolete. TemplateGroups使用屬性, 即可存取控制項設計工具的範本群組和範本群組內的範本定義。Use the TemplateGroups property to access template groups, and template definitions within template groups, for a control designer.

範本編輯方塊架代表樣板化控制項設計工具之範本編輯器的 UI。A template editing frame represents the UI for a template editor of a templated control designer.

屬性

ControlStyle ControlStyle ControlStyle ControlStyle

取得編輯框架的樣式。Gets the style for the editing frame.

InitialHeight InitialHeight InitialHeight InitialHeight

取得或設定控制項的初始高度。Gets or sets the initial height of the control.

InitialWidth InitialWidth InitialWidth InitialWidth

取得或設定控制項的初始寬度。Gets or sets the initial width of the control.

Name Name Name Name

取得編輯框架的名稱。Gets the name of the editing frame.

TemplateNames TemplateNames TemplateNames TemplateNames

取得要使用的樣板名稱集合。Gets a set of names of templates to use.

TemplateStyles TemplateStyles TemplateStyles TemplateStyles

取得控制項的樣板樣式。Gets the template styles for the control.

Verb Verb Verb Verb

取得或設定叫用樣板的動作 (Verb)。Gets or sets the verb that invokes the template.

方法

Close(Boolean) Close(Boolean) Close(Boolean) Close(Boolean)

關閉控制項並選擇是否要儲存任何的變更。Closes the control and optionally saves any changes.

Dispose() Dispose() Dispose() Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)
Open() Open() Open() Open()

開啟並顯示控制項。Opens and displays the control.

Resize(Int32, Int32) Resize(Int32, Int32) Resize(Int32, Int32) Resize(Int32, Int32)

將控制項調整為指定的寬度和高度。Resizes the control to the specified width and height.

Save() Save() Save() Save()

儲存對文件所作的任何變更。Saves any changes to the document.

UpdateControlName(String) UpdateControlName(String) UpdateControlName(String) UpdateControlName(String)

將控制項名稱變更為指定的名稱。Changes the name of the control to the specified name.

適用於

另請參閱