Search
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
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
MindFusion.Common.Collections
MindFusion.Controls
Alignment Enumeration
CancelEventArgs Class
Canvas Class
Canvas Members
Canvas Constructor
Canvas Methods
dispose Method
invalidate Method
repaint Method
Canvas Properties
CanvasControl Class
Control Class
Disposable Class
DomUtils Class
EventArgs Class
MouseButton Enumeration
MouseCursors Enumeration
TickPosition Enumeration
ZoomControl Class
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

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

Namespace: MindFusion.Controls
Assembly: 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