大网数据广告活动
打印与设备

ParameterDef

· 52CE 我爱测

Learn about the ParameterDef element, which defines the valid characteristics of parameter input. The value is entered by means of a ParameterInit element.

This topic is not current. For the most current information, see the Print Schema Specification.

A ParameterDef element defines the valid characteristics of parameter input. The value is entered by means of a ParameterInit element.

Element Tag

<ParameterDef>

XML Attributes

The following table lists the XML attributes that may be pertain to this element.

XML Attribute Details
name Defines a unique name for the parameter in the context of the current document. Duplicate ParameterDef name attributes render the PrintCapabilities document invalid.

For more information, please see XML Attributes section.

Element Information

The following table lists the elements that may be parents of this element, the elements that may be children of this element, and any restrictions on the element itself.

Category Details
Parent elements PrintCapabilities
Child elements Property (one or more) The following standard Property elements must appear as the content of a ParameterDef element. <ul><li>DataType </li><li>DefaultValue </li><li>Mandatory </li><li>MaxLength or MaxValue</li><li>MinLength or MinValue</li><li>Multiple* </li><li>UnitType </li></ul>
This element No character data is permitted. Duplicate child siblings are not permitted.

*Required when DataType is integer or decimal. Optional when DataType is string.

Configuration Dependencies

A ParameterDef and its content to any nesting level may not have any configuration dependencies.

Example

The following example sets all of the required Property elements for this parameter. The example in ParameterInit demonstrates how to initialize this parameter.

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

Related topics

Print Schema Specification

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。