| 4D v13PV Get print property | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D View v13
 PV Get print property 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PV Get print property ( area ; property ; value2 ) -> 戻り値 | ||||||||
| 引数 | 型 | 説明 | ||||||
| area | 倍長整数 |   | 4D View エリア | |||||
| property | 倍長整数 |   | プロパティ番号 | |||||
| value2 | 文字 |   | 追加のプロパティの値 | |||||
| 戻り値 | 倍長整数 |   | プロパティの値 | |||||
PV Get print propertyコマンドは、areaで指定された4D Viewエリアのpropertyの現在値を返します。特定の印刷プロパティではvalue2に追加の情報が返されることがあります。
引数propertyを指定するには、PV Print propertiesテーマの定数を使用します。これらの定数に関する詳細は、PV SET PRINT PROPERTYコマンドの説明を参照してください。
Note:“pv print dead...”で始まる4つの定数は読み取り専用です。
実際の印刷可能領域を知りたいものとします:
 C_LONGINT($paperWidth;$paperHeight)
 C_LONGINT($bottomMargin;$topMargin;$rightMargin;$leftMargin)
 C_LONGINT($usableWidth;$usableHeight)
 
 $paperWidth:=PV Get print property(area;pv print paper width)
 $paperHeight:=PV Get print property(area;pv print paper height)
 
 $bottomMargin:=PV Get print property(area;pv print dead bottom margin)
 $topMargin:=PV Get print property(area;pv print dead top margin)
 $rightMargin:=PV Get print property(area;pv print dead right margin)
 $leftMargin:=PV Get print property(area;pv print dead left margin)
 
 $usableWidth:=$paperWidth-($rightMargin+$leftMargin)
 $usableHeight:=$paperHeight-($topMargin+$bottomMargin)
	プロダクト: 4D
	テーマ: PVプリント
	番号: 
        15808
        
        
        
	
	変更: 4D View 2004.1