com.aspose.gridweb
Class Unit

java.lang.Object
    extended by com.aspose.gridweb.Unit
All Implemented Interfaces:
java.io.Serializable

public class Unit 
extends java.lang.Object

Represents a length measurement


Constructor Summary
Unit()
          
Unit(double value, int type)
           Initializes a new instance of the Unit structure with the specified double precision floating point number and UnitType.
Unit(double value)
           Initializes a new instance of the Unit structure with the specified double precision floating point number.
Unit(int value)
           Initializes a new instance of the Unit structure with the specified 32-bit signed integer.
Unit(java.lang.String value)
           Initializes a new instance of the Unit structure with the specified length.
 
Method Summary
intgetType()
           Gets the unit type of the Unit.
doublegetValue()
           Gets the length of the Unit.
booleanisEmpty()
          
java.lang.StringtoString()
           get string representation of the unit.
 

Constructor Detail

Unit

public Unit()

Unit

public Unit(double value, int type)
Initializes a new instance of the Unit structure with the specified double precision floating point number and UnitType.

Unit

public Unit(double value)
Initializes a new instance of the Unit structure with the specified double precision floating point number.

Unit

public Unit(int value)
Initializes a new instance of the Unit structure with the specified 32-bit signed integer.

Unit

public Unit(java.lang.String value)
Initializes a new instance of the Unit structure with the specified length.

Method Detail

isEmpty

public boolean isEmpty()

getType

public int getType()
Gets the unit type of the Unit.

getValue

public double getValue()
Gets the length of the Unit.

toString

public java.lang.String toString()
get string representation of the unit.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.