IXpsOMVisual::SetTransformLocal 方法 (xpsobjectmodel.h)

設定本機、未共用的矩陣轉換。

語法

HRESULT SetTransformLocal(
  [in] IXpsOMMatrixTransform *matrixTransform
);

參數

[in] matrixTransform

要設定為本機、未共用矩陣轉換之 IXpsOMMatrixTransform 介面的指標。 NULL 指標會釋放先前指派的轉換。

傳回值

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

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

備註

呼叫 SetTransformLocal 之後,轉換查閱索引鍵就會釋放,而 GetTransformLookup 會在索引鍵參數中傳回 NULL 指標。 下表說明此屬性之本機和查閱值之間的關聯性。

最近呼叫的方法 GetTransform 在轉換中傳回的物件 由 GetTransformLocal 傳回 matrixTransform 的物件 GetTransformLookup 在索引鍵中傳回的物件
SetTransformLocal (此方法) SetTransformLocal 所設定的本機轉換。 SetTransformLocal 所設定的本機轉換。 NULL 指標。

SetTransformLookup

從資源目錄擷取的共享轉換,具有符合 SetTransformLookup 所設定索引鍵的查閱索引鍵。 NULL 指標。 SetTransformLookup 所設定的查閱索引鍵。
尚未呼叫 SetTransformLocal 或 SetTransformLookup 。 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

另請參閱

IXpsOMVisual

XML Paper Specification

XPS 檔案錯誤