This documentation is archived and is not being maintained.

EditingContext Class

Contains contextual state about a designer.


Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

public class EditingContext : IDisposable

The EditingContext type exposes the following members.

Public methodEditingContextInitializes a new instance of the EditingContext class.

Public propertyItemsGets the local collection of context items offered by this editing context.
Public propertyServicesGets the service manager for this editing context.

Protected methodCreateContextItemManagerCreates an instance of the context item manager to be returned from the Items property.
Protected methodCreateServiceManagerCreates an instance of the service manager to be returned from the Services property.
Public methodDispose()Releases all resources used by the EditingContext.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the EditingContext and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFinalizer that implements the IDisposable pattern. (Overrides Object.Finalize().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public eventDisposingOccurs when the Dispose method is called.

The EditingContext class includes permanent state, such as a list of services that are running in the designer. It also includes transient state that consists of context items. Examples of transient context item state include the set of currently selected objects, and the editing tool being used to manipulate objects on the design surface. The editing context is designed to be a concrete class for ease of use. It does have a protected API that can be used to replace its implementation.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.