The EditingContext class contains contextual state about a designer. This includes permanent state such as list of services running in the designer. It also includes transient state consisting of context items. Examples of transient context item state include the set of currently selected objects as well as 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.
Assembly: Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)
'Declaration Public Class EditingContext _ Implements IDisposable 'Usage Dim instance As EditingContext
public class EditingContext : IDisposable
public ref class EditingContext : IDisposable
type EditingContext = class interface IDisposable end
public class EditingContext implements IDisposable
The EditingContext type exposes the following members.
|EditingContext||Creates a new editing context.|
|Items||Returns the local collection of context items offered by this editing context.|
|Services||Returns the service collection for this editing context.|
|CreateContextItemCollection||Creates an instance of the context item collection to be returned from the ContextItems property. The default implementation creates a ContextItemCollection that supports delayed activation of design editor collections through the declaration of a SubscribeContext attribute on the design editor manager.|
|CreateServiceCollection||Creates an instance of the service collection to be returned from the Services property. The default implementation creates a ServiceCollection that supports delayed activation of design editor managers through the declaration of a SubscribeService attribute on the design editor manager.|
|Dispose() () () ()||Disposes this editing context.|
|Dispose(Boolean)||Disposes this editing context. <param name="disposing">True if this object is being disposed, or false if it is finalizing.</param>|
|Equals||(Inherited from Object.)|
|Finalize||Finalizer that implements the IDisposable pattern. (Overrides Object..::..Finalize() () () ().)|
|GetHashCode||(Inherited from Object.)|
|GetType||(Inherited from Object.)|
|MemberwiseClone||(Inherited from Object.)|
|ToString||(Inherited from Object.)|
|Disposing||The Disposing event gets fired just before the context gets disposed.|
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.