DesignSurfaceMergeContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class DesignSurfaceMergeContext sealed
public sealed class DesignSurfaceMergeContext
type DesignSurfaceMergeContext = class
Public NotInheritable Class DesignSurfaceMergeContext
- Inheritance
-
DesignSurfaceMergeContext
Fields
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. |
Methods
AddRootModelElement(Transaction, ModelElement) |
Adds the modelElement to the transaction's DesignSurfaceMergeContext's RootMel collection. |
GetElementGroup(Transaction) |
Returns the ElementGroup that was reconstituted into the target store. |
GetRootModelElements(Transaction) |
Returns the collection of ModelElements (non-PresentationElements) that serve as the root elements in the reconstituted ElementGroup. |
GetRootPresentationElements(Transaction) |
Returns the collection of PresentationElements that serve as the root elements in the reconstituted ElementGroup. |
GetTargetElement(Transaction) |
Returns the target ModelElement of the merge operation. |
HasContext(Transaction) |
Returns true if the transaction contains DesignSurfaceMergeContext info, otherwise false. |
Set(Transaction, ModelElement, ElementGroup) |
Adds the DesignSurfaceMergeContext information to the specified transaction. |