Class
FixedDocumentViewerCommandBase

Represents the base FixedDocumentViewer command.

Definition

Constructors

FixedDocumentViewerCommandBase(FixedDocumentViewerBase)

Initializes a new instance of the FixedDocumentViewerCommandBase class.

Declaration

cs-api-definition
public FixedDocumentViewerCommandBase(FixedDocumentViewerBase fixedDocumentViewerBase)

Parameters

fixedDocumentViewerBase

FixedDocumentViewerBase

The fixed document viewer base.

Properties

Viewer

Gets or sets the viewer.

Declaration

cs-api-definition
protected FixedDocumentViewerBase Viewer { get; }

Property Value

FixedDocumentViewerBase

The viewer.

Methods

CanExecute(object)

Defines the method that determines whether the command can execute in its current state.

Declaration

cs-api-definition
public bool CanExecute(object parameter)

Parameters

parameter

object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns

bool

true if this command can be executed; otherwise, false.

Implements ICommand.CanExecute(object)

CanExecuteOverride(object)

Determines whether the command can be executed.

Declaration

cs-api-definition
public virtual bool CanExecuteOverride(object parameter)

Parameters

parameter

object

The parameter.

Returns

bool

Returns if the command can be executed.

Execute(object)

Defines the method to be called when the command is invoked.

Declaration

cs-api-definition
public virtual void Execute(object parameter)

Parameters

parameter

object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Implements ICommand.Execute(object)

OnCanExecuteChanged()

Called when CanExecute is changed..

Declaration

cs-api-definition
protected void OnCanExecuteChanged()

Events

CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.

Declaration

cs-api-definition
public event EventHandler CanExecuteChanged

Event Value

EventHandler

Implements ICommand.CanExecuteChanged