IToggleCommand Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a command that implements a togglable pattern.
public interface IToggleCommand : Microsoft.VisualStudio.Extensibility.Commands.IExecutableCommand, System.ComponentModel.INotifyPropertyChanged
type IToggleCommand = interface
interface IExecutableCommand
interface ICommand
interface INotifyPropertyChanged
Public Interface IToggleCommand
Implements IExecutableCommand, INotifyPropertyChanged
- Derived
- Implements
Properties
DisplayName |
Gets the display name for the command, or |
Flags |
Gets the flags associated with the command. (Inherited from ICommand) |
Id |
Gets a unique id for this command within its command set. (Inherited from ICommand) |
IsChecked |
Gets a value indicating whether this command is toggled. |
IsEnabled |
Gets a value indicating whether this command is enabled or disabled. (Inherited from IExecutableCommand) |
IsVisible |
Gets a value indicating whether this command is visible or invisible. (Inherited from ICommand) |
TooltipText |
Gets the tooltip text for the command, or the display name if no tooltip text was provided. (Inherited from ICommand) |
Methods
ExecuteCommandAsync(IReadOnlyDictionary<String,Object>, CancellationToken) |
Called to invoke the command. (Inherited from IExecutableCommand) |
InitializeAsync(CancellationToken) |
Completes async initialization of command instance. (Inherited from ICommand) |
SetEnabledState(Nullable<Boolean>) |
Set this command as enabled, disabled, or |
SetVisibilityState(Nullable<Boolean>) |
Set this command as visible, invisible, or |