Show / Hide Table of Contents

Interface IStandAloneCommand

Provides an extension point for Addins to provide a command that can be executed with no particular context.

Inherited Members
IGenericCommand.Name
IGenericCommand.Category
IGenericCommand.SubCategory
IGenericCommand.Image
IGenericCommand.Weight
Namespace: Algenta.Colectica.ViewModel.Commands
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface IStandAloneCommand : IGenericCommand

Properties

Result

Gets the result of the command's execution.

Declaration
CommandResult Result { get; }
Property Value
Type Description
CommandResult

The result of the command.

Methods

CanExecute()

Determines whether this command should be displayed for the specified node.

Declaration
bool CanExecute()
Returns
Type Description
System.Boolean

true if the command should be displayed for the specified node; otherwise false.

Remarks

The value returned from this method determines the Visibility of the command's menu item or button.

Execute()

Executes the command.

Declaration
void Execute()

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica