IPrintSchemaOption 介面 (printerextension.h)

公開列印架構選項物件。

繼承

IPrintSchemaOption 介面繼承自 IPrintSchemaDisplayableElement

方法

IPrintSchemaOption 介面具有這些方法。

 
IPrintSchemaOption::get_Constrained

取得架構選項的條件約束設定類型。
IPrintSchemaOption::get_Selected

指出是否已選取此選項。
IPrintSchemaOption::GetPropertyValue

取得 Property 的值子專案或具有指定名稱之 ScoredProperty 專案的 XML 節點。

備註

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

規格需求

需求
最低支援的用戶端 Windows 8
最低支援的伺服器 Windows Server 2012
目標平台 Windows
標頭 printerextension.h

另請參閱

IPrintSchemaDisplayableElement

IPrintSchemaFeature::GetOption

IPrintSchemaFeature::SelectedOption

IPrintSchemaOptionCollection

IPrintSchemaPageMediaSizeOption