MonitorSelectionEventArgs Class
Represents arguments for the monitor selection service.
Inheritance Hierarchy
System.Object
System.EventArgs
Microsoft.VisualStudio.Modeling.Shell.MonitorSelectionEventArgs
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaración
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 | |
---|---|---|
MonitorSelectionEventArgs | Initializes a new instance of the MonitorSelectionEventArgs class. |
Top
Properties
Name | Description | |
---|---|---|
NewValue | Gets the new ISelectionContainer object. | |
OldValue | Gets the original ISelectionContainer object. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.