MindFusion.Charting for JavaScript Programmer's Guide
Unit.isEmpty Property
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

Gets a value representing whether this Unit instance has a set value.

Namespace: MindFusion.Common
File: Unit.js

## Syntax

JavaScript Copy Code
get isEmpty() {}

### Property Value

Type: Boolean
Boolean. true if the Unit's value is null, otherwise false.

## Example

The following code checks if the minWidth of a Window is empty.

JavaScript Copy Code
if(window.minWidth.isEmpty) { window.minWidth = ui.Unit.pixel(100); }

## See Also

Unit Members
Unit Class
MindFusion.Common Namespace