Freigeben über


ModelElementLocator Class

Helper class for working with model element references.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Shell.ModelElementLocator

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Class ModelElementLocator
public class ModelElementLocator
public ref class ModelElementLocator
type ModelElementLocator =  class end
public class ModelElementLocator

The ModelElementLocator type exposes the following members.

Constructors

  Name Description
Public method ModelElementLocator constructor

Top

Properties

  Name Description
Protected property MonitorSelection
Protected property ServiceProvider

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindAndOpenDocView 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.
Public method FindDocView Finds a ModelingDocView displaying this diagam (if one exists). May return null.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NavigateTo(Guid, Diagram) Open the specified diagram.
Public method NavigateTo(Guid, ShapeElement) Display and select the specified shape.
Public method NavigateTo(Guid, Diagram, ICollection<DiagramItem>) Display the target diagram and select the target shapes. The first shape in the list is the primary selection.
Public method NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>) Display the targetShape's diagram and select the shape (extend the selection to include the extendedSelection.)
Public method NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>, Boolean) Display the targetShape's diagram and, if desired, select the shape (extend the selection to include the extendedSelection.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

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.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace