ModelElementLocator 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.
Helper class for working with model element references.
public ref class ModelElementLocator
public class ModelElementLocator
type ModelElementLocator = class
Public Class ModelElementLocator
- Inheritance
-
ModelElementLocator
Constructors
ModelElementLocator(IServiceProvider) |
constructor |
Properties
MonitorSelection |
Retruns the IMonitorSelectionService of our service provider. |
ServiceProvider |
Returns our IServiceProvider. |
Methods
FindAndOpenDocView(Guid, Diagram) |
Finds a ModelingDocView displaying this diagam. If the DocView cannot be found in already-opened views, then open the views on each candidate DocData. May return null. |
FindDocView(Guid, Diagram) |
Finds a ModelingDocView displaying this diagam (if one exists). |
NavigateTo(Guid, Diagram, ICollection<DiagramItem>) |
Display the target diagram and select the target shapes. All of the target shapes are expected to be in the target diagram. The First shape in the list is the primary selection. |
NavigateTo(Guid, Diagram) |
Open the target diagram. |
NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>, Boolean) |
Display the targetShape's diagram and, if desired, select the shape (extend the selection to include the extendedSelection.) |
NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>) |
Display the targetShape's diagram and select the shape (extend the selection to include the extendedSelection.) |
NavigateTo(Guid, ShapeElement) |
Display and select the supplied shape. |