ParameterDef
本主題不是最新的。 如需最新的資訊,請參閱 列印架構規格。
ParameterDef 元素會定義參數輸入的有效特性。 值是透過 ParameterInit 元素來輸入。
元素標記
<ParameterDef>
XML 屬性
下表列出可能與這個專案相關的 XML 屬性。
XML 屬性 | 詳細資料 |
---|---|
NAME |
在目前檔的內容中定義 參數的唯一名稱。 重複的 ParameterDef 名稱屬性會呈現 PrintCapabilities 檔無效。 |
如需詳細資訊,請參閱 XML 屬性一 節。
項目資訊
下表列出可能為這個專案父代的專案、可能是這個專案子系的專案,以及專案本身的任何限制。
類別 | 詳細資料 |
---|---|
父元素 |
PrintCapabilities |
子元素 |
屬性 (一個或多個) 下列標準 Property 元素必須顯示為 ParameterDef 元素的內容。
|
這個專案 |
不允許任何字元資料。 不允許重複的子同層級。 |
*DataType 是整數或十進位時的必要專案。 當 DataType 為字串時為選擇性。
設定相依性
ParameterDef 及其任何巢狀層級的內容可能沒有任何設定相依性。
範例
下列範例會設定此參數的所有必要 Property 元素。 ParameterInit中的範例示範如何初始化此參數。
<psf:ParameterDef name="psk:PageMediaSizeMediaSizeHeight">
<psf:Property name="psf:DataType">
<psf:Value xsi:type="xs:string">xs:integer</psf:Value>
</psf:Property>
<psf:Property name="psf:UnitType">
<psf:Value xsi:type="xs:string">microns</psf:Value>
</psf:Property>
<psf:Property name="psf:Multiple">
<psf:Value xsi:type="xs:integer">1</psf:Value>
</psf:Property>
<psf:Property name="psf:MaxValue">
<psf:Value xsi:type="xs:integer">594106</psf:Value>
</psf:Property>
<psf:Property name="psf:MinValue">
<psf:Value xsi:type="xs:integer">152400</psf:Value>
</psf:Property>
<psf:Property name="psf:DefaultValue">
<psf:Value xsi:type="xs:integer">152400</psf:Value>
</psf:Property>
<psf:Property name="psf:Mandatory">
<psf:Value xsi:type="xs:string">psk:Optional</psf:Value>
</psf:Property>
</psf:ParameterDef>