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

The unit type.

Namespace: MindFusion.Common
File: Unit.js

## Syntax

JavaScript Copy Code
get type() {}

### Property Value

One of the UnitType enumeration values.

## Example

The following code checks the type of the minWidth of a Window.

JavaScript Copy Code
if(window.minWidth.type == ui.UnitType.Percent) { window.minWidth = ui.Unit.percent(50); }

## See Also

Unit Members
Unit Class
MindFusion.Common Namespace