Share via


IXpsOMPath::SetFillBrushLocal 方法 (xpsobjectmodel.h)

設定要做為填滿筆刷之本機未共用 IXpsOMBrush 介面的指標。

語法

HRESULT SetFillBrushLocal(
  [in] IXpsOMBrush *brush
);

參數

[in] brush

要做為填滿筆刷之本機未共用 IXpsOMBrush 介面的指標。

傳回值

方法會傳回 HRESULT。 可能的值包括下列資料表中的值,但不限於這些值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關資訊,請參閱 XPS 檔錯誤

傳回碼 描述
S_OK
此方法已成功。
XPS_E_NO_CUSTOM_OBJECTS
筆刷 不會指向已辨識的介面實作。 不支援 XPS 檔 API 介面的自訂實作。

備註

呼叫SetFillBrushLocal之後,就會釋放填滿筆刷查閱索引鍵,而 GetFillBrushLookup會在查閱參數中傳回Null指標。 下表說明此屬性之本機和查閱值之間的關聯性。

最近呼叫的方法 GetFillBrush筆刷中傳回的物件 GetFillBrushLocal筆刷中傳回的物件 GetFillBrushLookup查閱中傳回的字串
SetFillBrushLocal (此方法) SetFillBrushLocal所設定的本機筆刷。 SetFillBrushLocal所設定的本機筆刷。 Null 指標。

SetFillBrushLookup

從資原始目錄擷取的共用筆刷,具有符合 SetFillBrushLookup所設定索引鍵的查閱索引鍵。 Null 指標。 SetFillBrushLookup所設定的查閱索引鍵。
尚未呼叫 SetFillBrushLocalSetFillBrushLookup Null 指標。 Null 指標。 Null 指標。

規格需求

   
最低支援的用戶端 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 xpsobjectmodel.h

另請參閱

IXpsOMBrush

IXpsOMPath

XML Paper Specification

XPS 檔錯誤