ParameterDef
本主題不是最新的。 如需最新的資訊,請參閱 列印架構規格。
ParameterDef 元素會定義參數輸入的有效特性。 值是透過ParameterInit元素來輸入。
元素標記
<ParameterDef>
XML 屬性
下表列出可能與這個專案相關的 XML 屬性。
XML 屬性 | 詳 |
---|---|
名字 |
在目前檔案的內容中定義參數的唯一名稱。 重複的 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>