MindFusion.Charting for JavaScript Programmer's Guide
Canvas.invalidate Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

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

Namespace: MindFusion.Controls
File: Canvas.js

## Syntax

JavaScript Copy Code
function invalidate ([rect, [force]])

### Parameters

rect
  Optional.

  Rect. A Rect instance specifying the region that should be repainted. If not specified, the whole diagram will be repainted.

force
  Optional.

  Boolean. true to force redraw even if currently painting, or false otherwise.

## See Also

Canvas Members
Canvas Class
MindFusion.Controls Namespace