単位を調べる

■プログラム説明
 単位を取得するにはpreferences.rulerUnitsプロパティの値を読み出します。

■ソースコード
unt = preferences.rulerUnits;
alert(unt);

■ポイント
 返される単位は以下のものになります。

Units.CM
Units.INCHES
Units.MM
Units.PERCENT
Units.PICAS
Units.PIXELS
Units.POINTS