IPrintSchemaOption 接口 (printerextension.h)

公开打印架构选项对象。

继承

IPrintSchemaOption 接口继承自 IPrintSchemaDisplayableElement

方法

IPrintSchemaOption 接口包含以下方法。

 
IPrintSchemaOption::get_Constrained

获取架构选项的约束设置类型。
IPrintSchemaOption::get_Selected

指示是否选择此选项。
IPrintSchemaOption::GetPropertyValue

获取具有给定名称的 Property 或 ScoredProperty 元素的值子元素的 XML 节点。

注解

必须确保 PrintTicket 或 PrintCapabilities XML 文档中的每个功能或选项都指定了 name 属性。 此属性用于生成 IPrintSchemaOptionIPrintSchemaFeature 对象。 如果省略 name 属性,则特征或选项将不会显示在对象模型或 Microsoft 提供的打印首选项体验中。

要求

要求
最低受支持的客户端 Windows 8
最低受支持的服务器 Windows Server 2012
目标平台 Windows
标头 printerextension.h

另请参阅

IPrintSchemaDisplayableElement

IPrintSchemaFeature::GetOption

IPrintSchemaFeature::SelectedOption

IPrintSchemaOptionCollection

IPrintSchemaPageMediaSizeOption