Table of Contents

Class CanvasCommand

Namespace
BOOSE
Assembly
BOOSE.dll

Abstract class that is inherited by derived canvas commands that draw on a canvas. It stores the x and y positions of the last drawing operation.

public abstract class CanvasCommand : Command, ICommand
Inheritance
CanvasCommand
Implements
Derived
Inherited Members

Constructors

CanvasCommand()

public CanvasCommand()

CanvasCommand(ICanvas)

Check the parsed parameters match what are expected, i.e. if a command requires two parameters has it got two parameters?

public CanvasCommand(ICanvas c)

Parameters

c ICanvas

Fields

canvas

protected ICanvas canvas

Field Value

ICanvas

xPos

protected int xPos

Field Value

int

yPos

protected int yPos

Field Value

int

Properties

Canvas

get/set Canvas object this command is associated with (useful

public ICanvas Canvas { get; set; }

Property Value

ICanvas