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

Option

· 52CE 我爱测

Get information about the Option element. This topic isn't current. For the most current information, see the Print Schema Specification.

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

An Option element contains all of the Property and ScoredProperty elements associated with this option.

Element Tag

<Option>

XML Attributes

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

XML Attribute Details
constrained This attribute is optional for a PrintCapabilities document. This attribute indicates whether the Option is available for selection or use. This XML attribute can be set to one of the following values: None, PrintTicketSettings, AdminSetting or DeviceSettings. See XML Attributes
name Holds the name of the Option, either a standard Option or a privately-defined Option. The XML attribute is used this way in order to differentiate between Option instances.

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 Feature
Child elements Property (zero or more) ScoredProperty (zero or more for Options with XML Attribute 'name'; one or more for Options not utilizing XML Attribute 'name'*) * only public Options defined in Print Schema can have no 'name' attribute, such as DocumentNUp)
This element No character data is permitted. Duplicate child siblings are not permitted.

Configuration Dependencies

An Option definition element may not have any configuration dependencies.

Element Usage

The purpose of the Option element is to characterize one of the states that a device configuration attribute, represented by a Feature element, can assume. Each Option element definition contains one or more ScoredProperty elements that describe an intrinsic or essential characteristic of that Option. To facilitate portability and preservation of intent, the Print Schema defines many common Feature elements and a variety of Option elements for each Feature. It is therefore important to use Print Schema-defined Option elements, if at all possible, before you create your own Option definitions. Understanding the process of defining Option elements provides useful insights into the way the PrintCapabilities document and PrintTickets are used in the Microsoft .NET Framework version 3.0 and Windows Vista printing architecture.

Example

The following example defines a name for the Option.

<psf:Option name="psk:PrintFront" />

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)

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

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