Search
Canvas Members
Constructors Properties Methods
 


Handles drawing on a CanvasRenderingContext2D.

The following tables list the members exposed by the Canvas type.

 Public Constructors

  Name Description

Canvas

Initializes a new instance of the Canvas class.

 Public Properties

  Name Description

bounds

Gets the underlying Canvas element's logical bounds.

element

Returns a reference to the control's DOM element. (Inherited from Disposable.)

enabled

Gets or sets whether mouse events are enabled. (Inherited from Disposable.)

measureUnit

Gets or sets the unit of measure used for logical coordinates.

minVisibleFontSize

Gets or sets a threshold value that hides text if scaled font sizes become smaller.

scale

Gets the current scale of this Canvas.

 Public Methods

  Name Description

addEventListener

Registers a single event listener on the instance. (Inherited from Disposable.)

dispose

Overrides Disposable.dispose

invalidate

Invalidates the canvas or a region of the canvas, causing it to be repainted.

raiseEvent

Raises an event. (Inherited from Disposable.)

removeEventListener

Removes a single event listener attached to the instance. (Inherited from Disposable.)

repaint

Repaints the canvas.

 See Also