共用方式為


IPrintSchemaFeature 接口 (printerextension.h)

公開列印架構功能專案。

遺產

IPrintSchemaFeature 介面繼承自 IPrintSchemaDisplayableElement

方法

IPrintSchemaFeature 介面具有這些方法。

 
IPrintSchemaFeature::get_DisplayUI

取得設定,指出是否要顯示列印UI。
IPrintSchemaFeature::get_SelectedOption

取得代表所選選項的 IPrintSchemaOption。
IPrintSchemaFeature::get_SelectionType

取得功能的選取類型。
IPrintSchemaFeature::GetOption

取得具有指定名稱的選項。
IPrintSchemaFeature::p ut_SelectedOption

將 [列印架構功能] 元素的選取選項變更為指定的 IPrintSchemaOption 元素。

言論

您必須確定 PrintTicket 或 PrintCapabilities XML 檔中的每個功能或選項都有指定 名稱 屬性。 這個屬性可用來建置 IPrintSchemaOptionIPrintSchemaFeature 物件。 如果省略 名稱 屬性,則不會在物件模型中顯示功能或選項,或Microsoft提供的列印喜好設定體驗。

要求

要求 價值
最低支援的用戶端 Windows 8
支援的最低伺服器 Windows Server 2012
目標平臺 窗戶
標頭 printerextension.h (包括 Printerextension.h)

另請參閱

IPrintSchemaCapabilities::GetFeature

IPrintSchemaDisplayableElement

IPrintSchemaTicket::GetFeature

IPrintSchemaTicket::GetFeatureByKeyName