Reveals layers below the selected layer in the map by flickering for the specified time duration.
Product Availability
Description
The CLSID of this command is: {0275091D-3820-4B18-A646-BCFE890735CE}.
This command works with the ToolbarControl, MapControl and ArcMap (it does not work with focus map in the PageLayoutControl).
This command must be used in conjunction with CommandsEnvironment singleton object. Failure to instantiate the CommandsEnvironment singleton object results in this command internally using it's own instance of the CommandsEnvironment object and appearing disabled to the end user.
This command gets the layer to be swiped from the ILayerEffectProperties::FlickerLayer property on the CommandsEnvironment singleton. This can be set programmatically or interactively by the end user selecting a layer from the ControlsLayerListToolControl.
Interfaces
Interfaces | Description |
---|---|
ICommand (esriSystemUI) | Provides access to members that define a COM command. |
using
ESRI.ArcGIS.Controls;using
ESRI.ArcGIS.SystemUI;public
partialclass
Form1 : Form {private
CommandsEnvironmentClass m_CommandsEnvironment =new
CommandsEnvironmentClass();private void
Form1_Load(object
sender, System.EventArgs e) {//Set buddy control
axToolbarControl1.SetBuddyControl(axMapControl1);//Add items to ToolbarControl
axToolbarControl1.AddItem("esriControls.ControlsOpenDocCommand", -1, -1,false
, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsMapFlickerCommand", -1, -1,true
, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1,false
, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsLayerListToolControl", -1, -1,false
, 0, esriCommandStyles.esriCommandStyleIconOnly); } }
Imports
ESRI.ArcGIS.ControlsImports
ESRI.ArcGIS.SystemUIPublic Class
Form1Private
m_CommandsEnvironmentAs New
CommandsEnvironmentClassPrivate Sub
Form1_Load(ByVal
senderAs
System.Object,ByVal
eAs
System.EventArgs)Handles
MyBase.Load'Set buddy control
AxToolbarControl1.SetBuddyControl(AxMapControl1)'Add items to ToolbarControl
AxToolbarControl1.AddItem("esriControls.ControlsOpenDocCommand", -1, -1,False
, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsMapFlickerCommand", -1, -1,True
, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1,False
, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsLayerListToolControl", -1, -1,False
, 0, esriCommandStyles.esriCommandStyleIconOnly)End Sub End
Class