horizontalCustomPoints

書式

viewPreferences.horizontalCustomPoints

説明

horizontalCustomPointsは単位と増減値の設定の定規の単位のカテゴリにある水平方向でカスタムを選択した場合に設定されている値を示します。なお、水平方向でカスタムが選択されていない場合に値を読み出すとエラーになります。
var vp=app.activeDocument.viewPreferences;
try{
    var n=vp.horizontalCustomPoints;
}catch(e){
    var n="カスタム値ではありません";
}
alert(n);

目次に戻る