NShape Reference
ICommand Interface

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Commands >

NShape Reference
ICommand Interface

Previous pageReturn to chapter overviewNext page

Interface for undoable commands.

Syntax

public interface ICommand

Description

Interface for undoable commands.

Public Properties

Name

Description

Repository

Gets or sets an IRepository.

Description

Returns a descriptive text.

Public Methods

Name

Description

Execute

Executes the command.

Revert

Reverts the command.

IsAllowed

Checks whether executing the command is allowed with the help of the given ISecurityManager.

CheckAllowed

Checks whether executing the command is allowed with the help of the given ISecurityManager. Returns an Exception object (which can be thrown) if the action is not allowed.

OpenDiagram

Creates the diagram controller for the indicated diagram.

CloseDiagram

Releases the diagram controller for the indicated diagram.

Project

References the diagramming project.

Requirements

Namespace: Dataweb.NShape.Commands

Assembly: Dataweb.NShape