ParameterDef

本主题不是最新的。 有关最新信息,请参阅 打印架构规范

ParameterDef 元素定义参数输入的有效特征。 该值通过 ParameterInit 元素输入。

元素标记

<ParameterDef>

XML 属性

下表列出了可能与此元素相关的 XML 属性。

XML 属性
名字
在当前文档的上下文中定义参数的唯一名称。 重复 ParameterDef 名称属性呈现 PrintCapabilities 文档无效。

有关详细信息,请参阅 XML 属性 部分。

元素信息

下表列出了可能是此元素的父元素、可能是此元素的子元素以及元素本身的任何限制。

类别
父元素
PrintCapabilities
子元素
属性(一个或多个)
以下标准 Property 元素必须显示为 ParameterDef 元素的内容。
  • DataType
  • DefaultValue
  • 命令的
  • MaxLength 或 MaxValue
  • MinLength 或 MinValue
  • 倍数*
  • UnitType
此元素
不允许使用字符数据。
不允许重复的子级兄弟姐妹。

*当 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>

打印架构规范