ElementOperations Members
Include Protected Members
Include Inherited Members
Provides common operations that act upon a collection of model elements.
The ElementOperations type exposes the following members.
Constructors
Name
Description
Overloaded.
Top
Methods
Name
Description
Adds one or more custom data formats to the specified IDataObject using the specified collection of ModelElements.
Overloaded.
Returns a value indicating whether the ModelElement collection can be used to create a custom format.
Returns a value indicating whether the ModelElement collection can be used to create an ElementGroupPrototype format.
Overloaded.
Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject.
Returns a value indicating whether the ElementGroupPrototype from the IDataObject can be merged (i.e., pasted or dropped) into the target ModelElement.
Overloaded.
Gets a value indicating whether the collection of ModelElements can be moved.
Overloaded.
Overloaded.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Returns an IDataObject from the Clipboard if it contains our ElementGroupPrototype format, otherwise null.
Gets the ElementGroupPrototype from the DataObject if it exists.
Serves as a hash function for a particular type. (Inherited from Object.)
GetModelingToolboxItemDisplayName
If the IDataObject contains a ModelingToolboxItem, this returns its DisplayName, otherwise null.
Gets the type of the current instance. (Inherited from Object.)
IsElementGroupPrototypeFormatAvailable
Returns true if the ElementGroupPrototype clipboard format is available on the clipboard, otherwise false.
Creates a shallow copy of the current Object. (Inherited from Object.)
Merges (i.e., pastes or drops) the ElementGroupPrototype from the IDataObject to the target ModelElement.
Merges the source ElementGroup with the specified target ModelElement.
Merges the source ElementGroupPrototype with the specified target ModelElement.
Called by MergeElementGroupPrototype immediately after the elements from the ElementGroupPrototype have been reconstituted, but before they are connected to the rest of the model.
Called by MergeElementGroupPrototype immediately before the local transaction is committed. The rules are queued during the local transaction and fired when the transaction commits. The local transaction wraps reconstituting and connecting elements.
Called by MergeElementGroupPrototype immediately after the target element has been chosen, but before the elements from the ElementGroupPrototype have been reconstituted.
PropagateElementGroupContextToTransaction
Propagates the context present in the element group to the currently active top-level transaction.
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Top
Events
Name
Description
Called by MergeElementGroupPrototype immediately after the elements from the ElementGroupPrototype have been reconstituted, but before they are connected to the rest of the model.
Called by MergeElementGroupPrototype immediately before the local transaction is committed. The rules are queued during the local transaction and fired when the transaction commits. The local transaction wraps reconstituting and connecting elements.
Called by MergeElementGroupPrototype immediately after the target element has been chosen, but before the elements from the ElementGroupPrototype have been reconstituted.
Top