IXpsOMGlyphs::SetFillBrushLocal 方法 (xpsobjectmodel.h)
設定本機未共用填滿筆刷的 IXpsOMBrush 介面指標。
語法
HRESULT SetFillBrushLocal(
[in] IXpsOMBrush *fillBrush
);
參數
[in] fillBrush
要設定為本機未共用填滿筆刷的 IXpsOMBrush 介面指標。 NULL 指標會釋放任何先前指派的筆刷。
傳回值
方法會傳回 HRESULT。 可能的值包括但不限於下列數據表中的值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關信息,請參閱 XPS 檔錯誤。
傳回碼 | 描述 |
---|---|
|
此方法已成功。 |
|
fillBrush 不會指向已辨識的介面實作。 不支援 XPS 檔 API 介面的自定義實作。 |
備註
呼叫 SetFillBrushLocal 之後,會釋放填滿筆刷查閱索引鍵,而 GetFillBrushLookup 會傳回 key 參數中的 NULL 指標。 下表說明此屬性之本機值與查閱值之間的關聯性。
最近呼叫的方法 | 由 GetFillBrush 傳回 fillBrush 的物件 | 由 GetFillBrushLocal 傳回 fillBrush 的物件 | GetFillBrushLookup 在索引鍵中傳回的字串 |
---|---|---|---|
SetFillBrushLocal (此方法) | SetFillBrushLocal 所設定的本機筆刷。 | SetFillBrushLocal 所設定的本機筆刷。 | NULL 指標。 |
從資源目錄擷取的共用筆刷,具有符合 SetFillBrushLookup 所設定索引鍵的查閱索引鍵。 | NULL 指標。 | SetFillBrushLookup 所設定的查閱索引鍵。 | |
尚未呼叫 SetFillBrushLocal 或 SetFillBrushLookup 。 | 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 |