C# Класс Smrf.NodeXL.ExcelTemplate.RunCommandEventArgs

Provides information for a command that needs to be run.
NodeXL uses the "chain of responsibility" pattern for sending commands from one UI object to another -- from the Ribbon to the TaskPane, for example, and from the TaskPane to the workbook. With this pattern, the sender sends a command to one or more receivers without knowing which receiver will handle the command.

In NodeXL's case, .NET's standard event mechanism is used to send and receive the commands. A command is distinguished by a class derived from this RunCommandEventArgs base class. The derived class may include event information as properties when necessary. A command receiver, which implements a RunCommandEventHandler method, determines which command needs to be run by checking the derived type of the RunCommandEventArgs object that gets passed to the method.

The CommandDispatcher static class is used by senders to send commands. Receivers receive commands by subscribing to the CommandDispatcher.CommandDispatcher.CommandSent event.

Наследование: System.EventArgs
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
RunCommandEventArgs ( ) : System

Initializes a new instance of the RunCommandEventArgs class.

Приватные методы

Метод Описание
AssertValid ( ) : void

Описание методов

RunCommandEventArgs() публичный метод

Initializes a new instance of the RunCommandEventArgs class.
public RunCommandEventArgs ( ) : System
Результат System