DesignSurfaceMergeContext Class
Provides merge (i.e., drop/paste) information which is initially set by the merge process when the ElementGroupPrototype's objects are reconstituted into the target store. The merge information is subsequently used throughout the merge process and the fixup phase.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.DesignSurfaceMergeContext
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public NotInheritable Class DesignSurfaceMergeContext
public sealed class DesignSurfaceMergeContext
public ref class DesignSurfaceMergeContext sealed
[<Sealed>]
type DesignSurfaceMergeContext = class end
public final class DesignSurfaceMergeContext
The DesignSurfaceMergeContext type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddRootModelElement | Adds the modelElement to the transaction's DesignSurfaceMergeContext's RootMel collection. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetElementGroup | Returns the ElementGroup that was reconstituted into the target store. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRootModelElements | Returns the collection of ModelElements (non-PresentationElements) that serve as the root elements in the reconstituted ElementGroup. | |
GetRootPresentationElements | Returns the collection of PresentationElements that serve as the root elements in the reconstituted ElementGroup. | |
GetTargetElement | Returns the target ModelElement of the merge operation. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasContext | Returns true if the transaction contains DesignSurfaceMergeContext info, otherwise false. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Set | Adds the DesignSurfaceMergeContext information to the specified transaction. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
PreMergeKey | When this key is present in an ElementGroup's context, the merge process will call PreMergeSelf() on every root element in the ElementGroup at the beginning of merge. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.