EditingContext EditingContext EditingContext EditingContext Class

定義

包含設計工具的內容狀態資訊,例如 WorkflowDesignerContains contextual state information for a designer, such as the WorkflowDesigner. 當中會包括永久性狀態資訊,例如設計工具中所執行之服務的清單,This includes permanent state information, such as the list of services running in the designer. 並同時包含由內容項目構成的暫時性狀態,包括一組目前選取的物件,以及要用在設計介面上處理物件的編輯工具。It also includes transient state consisting of context items including the set of currently selected objects as well as the editing tool being used to manipulate objects on the design surface.

public ref class EditingContext : IDisposable
public class EditingContext : IDisposable
type EditingContext = class
    interface IDisposable
Public Class EditingContext
Implements IDisposable
繼承
EditingContextEditingContextEditingContextEditingContext
實作

備註

EditingContext 代表裝載應用程式和 Windows Workflow DesignerWindows Workflow Designer 共用的通訊界限。The EditingContext represents the communication boundary that is shared between the hosting application and the Windows Workflow DesignerWindows Workflow Designer. EditingContext 會實作為具象類別,以易於使用。The EditingContext was implemented as a concrete class for ease of use. 覆寫 CreateServiceManagerCreateContextItemManager,以使用衍生自 ServiceManagerContextItemManager 的自訂管理員。Override CreateServiceManager and CreateContextItemManager to use customized managers derived from ServiceManager and ContextItemManager.

建構函式

EditingContext() EditingContext() EditingContext() EditingContext()

初始化 EditingContext 類別的新執行個體。Initializes a new instance of the EditingContext class.

屬性

Items Items Items Items

傳回目前編輯內容所儲存之內容項目的本機集合。Returns the local collection of context items stored by the current editing context.

Services Services Services Services

傳回在目前的編輯內容中使用的服務管理員。Returns the service manager used in the current editing context.

方法

CreateContextItemManager() CreateContextItemManager() CreateContextItemManager() CreateContextItemManager()

建立由 Items 屬性傳回之內容項目管理員的執行個體。Creates an instance of the context item manager that is returned by the Items property.

CreateServiceManager() CreateServiceManager() CreateServiceManager() CreateServiceManager()

建立從 Services 屬性傳回之服務管理員的執行個體。Creates an instance of the service manager to be returned from the Services property.

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

立即釋放物件所使用的任何 Unmanaged 資源。Immediately releases any unmanaged resources used by the object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

立即釋放目前 EditingContext 物件所使用的 Unmanaged 資源。Immediately releases the unmanaged resources used by the current EditingContext object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

事件

Disposing Disposing Disposing Disposing

呼叫 Dispose() 方法時,或是終結 EditingContext 物件,並由 Microsoft .NET Common Language Runtime 的回收記憶體收集時,即會發生。Occurs when the Dispose() method is called or when the EditingContext object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

適用於