ASP.NET Pack Programmer's Guide
UnitType Enumeration
See Also
 





Specifies a unit of measurement.

Namespace: MindFusion.Mapping
Package: Unit.js

 Syntax

JavaScript  Copy Code

// enum
UnitType = {}

 Members

  Member name Description

Percent

The measurement is a percentage relative to the parent element.

Pixel

The measurement is in pixels.

 Example

The following code uses the UnitType enumeration to check the type of a Unit value:

JavaScript  Copy Code

var m = MindFusion.Mapping;

var unit = new m.Unit();

if(unit.type == m.UnitType.Percent)
{
   var length = unit.value;
}

 See Also

MindFusion.Mapping Namespace