DynamicCommandAnchor Class
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.
Provides a framework implementation of an anchor that commands can be dynamically added to and removed from.
public abstract class DynamicCommandAnchor : Microsoft.VisualStudio.Extensibility.Commands.PlaceholderCommand, Microsoft.VisualStudio.Extensibility.IVisualStudioContributionClass
type DynamicCommandAnchor = class
inherit PlaceholderCommand
interface IVisualStudioContributionClass
Public MustInherit Class DynamicCommandAnchor
Inherits PlaceholderCommand
Implements IVisualStudioContributionClass
- Inheritance
- Implements
Constructors
DynamicCommandAnchor(CommandSet) |
Initializes a new instance of the DynamicCommandAnchor class. |
Properties
CommandConfiguration |
Gets the configuration for this command anchor. The value of this property is evaluated at compile time when building the Visual Studio extension. |
DisplayName |
Gets the display name for the command, or |
Flags |
Gets the flags associated with the command. (Inherited from PlaceholderCommand) |
Id |
Gets a unique id for this command within its command set. (Inherited from PlaceholderCommand) |
IsDisposed | (Inherited from PlaceholderCommand) |
IsVisible |
Gets a value indicating whether this command is visible or invisible. (Inherited from PlaceholderCommand) |
TooltipText |
Gets the tooltip text for the command, or the display name if no tooltip text was provided. (Inherited from PlaceholderCommand) |
Methods
AddCommand(CommandMetadata, CommandCallbackAsync) |
Register a command instance using command name and handler and anchor it to this group. |
Dispose() | (Inherited from PlaceholderCommand) |
Dispose(Boolean) |
Disposes the command instance. (Inherited from PlaceholderCommand) |
InitializeAsync(CancellationToken) |
Completes async initialization of command instance. (Inherited from PlaceholderCommand) |
OnPropertyChanged(PropertyChangedEventArgs) |
Fires PropertyChanged event. (Inherited from PlaceholderCommand) |
RemoveCommand(String) |
Unregister a command. |
SetVisibilityState(Nullable<Boolean>) |
Set this command as visible, invisible, or |
Events
PropertyChanged | (Inherited from PlaceholderCommand) |