This document is archived and information here might be outdated.  Recommended version.

ICommand.Checked Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommand Interface > ICommand.Checked Property
ArcGIS Developer Help

ICommand.Checked Property

Indicates if this command is checked.

[Visual Basic .NET]
Public ReadOnly Property Checked As Boolean
public bool Checked {get;}
HRESULT get_Checked(
  Boolean* Checked
Checked [out, retval]

Checked is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The Checked property indicates the state of this Command. If a command item appears depressed on a commandbar, the command is checked. The active tool will appear checked. Also commands that serve as a toggle will be checked when that toggle is on.
A system event is periodically called to set the state of the commands on the commandbars indicating which ones are checked.

See Also

ICommand Interface