com.esri.arcgis.arcmapui
Interface IViewCommand

All Superinterfaces:
Serializable
All Known Implementing Classes:
IViewCommandProxy

public interface IViewCommand
extends Serializable

Provides access to members that control view commands.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 boolean applies(IActiveView view)
          Indicates if command works with the specified view.
 ISelection getSelection()
          The selection object used by the associated view.
 

Method Detail

getSelection

ISelection getSelection()
                        throws IOException,
                               AutomationException
The selection object used by the associated view.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
A reference to a com.esri.arcgis.carto.ISelection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

applies

boolean applies(IActiveView view)
                throws IOException,
                       AutomationException
Indicates if command works with the specified view.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
view - A reference to a com.esri.arcgis.carto.IActiveView (in)
Returns:
The applies
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.