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

Important Property Instances

· 52CE 我爱测

For a client to construct a PrintTicket, the PrintCapabilities document must provide properties of Feature instances and Option instances in the Feature.

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

In order for a PrintCapabilities client to be able to construct a reasonable PrintTicket, the PrintCapabilities document must provide certain properties of Feature instances as well as Option instances within the Feature. A generic user interface (UI) module requires such information to construct a UI. This in turn requires that the Print Schema Keywords define a few Property instances that appear as children of Feature and Option elements.

Feature elements can contain the following Property.

Property Values Purpose
SelectionType PickOne PickMany Specifies the number of Options that can be selected for this Feature at a given time, either one (PickOne), or more than one (PickMany). The client can use this information to construct a PrintTicket. This information affects UI behavior, as well as PrintTicket validation by the provider.

Option elements can contain the following Property.

Property Values Purpose
IdentityOption True False Selecting the IdentityOption Property is interpreted to mean "disable this feature". A Feature that contains a SelectionType Property whose value is PickMany must also contain an Option that has an IdentityOption Property. The UI code (or client constructing a PrintTicket) must deselect any other Option if the IdentityOption Property is selected.

Feature, Option, and ParameterDef elements can contain the following Property.

Property Values Purpose
DisplayUI Show Hide Specifies whether the parent element should be displayed in the UI. Show indicates that the element should be displayed in the UI. Hide indicates that the element should not be displayed in the UI. If this Property is not defined for an element, the default interpretation is Show, meaning that the element is displayed.

Feature, Option, and ParameterDef elements can contain the following Property.

Property Value Purpose
DisplayName String Specifies the display string for the parent element, overriding the default display name. Can be used by PrintCapabilities providers to present a localized and user friendly display name. The default display name value is the name attribute for the parent element. In the case of Option elements, if the name attribute is not provided, then the DisplayName Property must be present.

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)

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

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