EditingContext EditingContext EditingContext EditingContext Class


Contains 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


The EditingContext represents the communication boundary that is shared between the hosting application and the Windows Workflow Designer. The EditingContext was implemented as a concrete class for ease of use. Override CreateServiceManager and CreateContextItemManager to use customized managers derived from ServiceManager and ContextItemManager.


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()

Creates an instance of the context item manager that is returned by the Items property.

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

Creates an instance of the service manager to be returned from the Services property.

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

Immediately releases any unmanaged resources used by the object.

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

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()

Gets the Type of the current instance.

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

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

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.

Applies to