Share via


MonitorSelectionEventArgs Class

Represents arguments for the monitor selection service.

Inheritance Hierarchy

Object
  EventArgs
    Microsoft.VisualStudio.Modeling.Shell.MonitorSelectionEventArgs

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

Syntax

'Declaration
Public Class MonitorSelectionEventArgs _
    Inherits EventArgs
public class MonitorSelectionEventArgs : EventArgs
public ref class MonitorSelectionEventArgs : public EventArgs
type MonitorSelectionEventArgs =  
    class 
        inherit EventArgs 
    end
public class MonitorSelectionEventArgs extends EventArgs

The MonitorSelectionEventArgs type exposes the following members.

Constructors

  Name Description
Public method MonitorSelectionEventArgs Initializes a new instance of the MonitorSelectionEventArgs class.

Top

Properties

  Name Description
Public property NewValue Gets the new ISelectionContainer object.
Public property OldValue Gets the original ISelectionContainer object.

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 GetHashCode Serves as a hash function for a particular type. (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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This class references the MonitorSelection property in the CommandSet class and the ModelElementLocator class.

When selection changes in the diagram, the event handler to which you subscribed with the monitor selection service is invoked with these argument values.

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