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

ParameterRef

· 52CE 我爱测

Learn about the ParameterRef element, which defines a reference to a ParameterInit element, and how it works with ScoredProperty.

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

A ParameterRef element defines a reference to a ParameterInit element. A ScoredProperty element that contains a ParameterRef element does not have an explicitly-set Value element. Instead, the ScoredProperty element receives its value from the ParameterInit element referenced by a ParameterRef element.

Element Tag

<ParameterRef>

XML Attributes

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

XML Attribute Details
name Holds the name attribute of the ParameterDef element that is referenced within the context of the current document.

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 ScoredProperty
Child elements None permitted.
This element No character data is permitted. Duplicate child siblings are not permitted.

Configuration Dependencies

ParameterRef elements may not have any configuration dependencies.

Example

The following example illustrates how to use ParameterRef elements to enable users to enter custom media size parameters.

<psf:Option name="psk:CustomMediaSize" constrained="psk:None">
  <psf:ScoredProperty name="psk:MediaSizeWidth">
    <psf:ParameterRef name="psk:PageMediaSizeMediaSizeWidth" />
  </psf:ScoredProperty>
  <psf:ScoredProperty name="psk:MediaSizeHeight">
    <psf:ParameterRef name="psk:PageMediaSizeMediaSizeHeight" />
  </psf:ScoredProperty>
  <psf:Property name="psk:DisplayName">
    <psf:Value xsi:type="xs:string">Fabrikam User Custom</psf:Value>
  </psf:Property>
</psf:Option>

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)

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

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