共用方式為


IXpsOMPath::GetStrokeBrushLocal 方法 (xpsobjectmodel.h)

取得本機未共用 IXpsOMBrush 介面的指標,其中包含路徑的筆劃筆刷。

語法

HRESULT GetStrokeBrushLocal(
  [out, retval] IXpsOMBrush **brush
);

參數

[out, retval] brush

包含路徑筆劃筆刷的本機未共用 IXpsOMBrush 介面。 如果已設定筆劃筆刷查閱索引鍵,或未設定本機筆劃筆刷,則會傳回 NULL 指標。

最近呼叫的方法 中傳回的物件

SetStrokeBrushLocal

SetStrokeBrushLocal 所設定的本機筆刷。

SetStrokeBrushLookup

NULL 指標。
尚未呼叫 SetStrokeBrushLocalSetStrokeBrushLookup NULL 指標。

傳回值

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

傳回碼 描述
S_OK
此方法已成功。
E_POINTER
筆刷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 檔案錯誤