IXpsOMGlyphsEditor::GetGlyphMappings 方法 (xpsobjectmodel.h)
取得XPS_GLYPH_MAPPING結構的陣列,描述如何將 UTF-16 純量值對應至由 GetGlyphIndices傳回之 XPS_GLYPH_INDEX結構陣列中的專案。
語法
HRESULT GetGlyphMappings(
[in, out] UINT32 *glyphMappingCount,
[out] XPS_GLYPH_MAPPING *glyphMappings
);
參數
[in, out] glyphMappingCount
符合glyphMappings所參考陣列的XPS_GLYPH_MAPPING結構數目。 當方法傳回時, glyphMappingCount 將會包含該陣列中的值數目。
[out] glyphMappings
接收字元對應值的 XPS_GLYPH_MAPPING 結構陣列。
傳回值
方法會傳回 HRESULT。 可能的值包括下列資料表中的值,但不限於這些值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關資訊,請參閱 XPS 檔錯誤。
傳回碼 | 描述 |
---|---|
|
此方法已成功。 |
|
glyphMappingCount 或 glyphMappings 為 Null。 |
|
glyphMappings 不夠大,無法接收字元索引資料。 glyphMappingCount 包含必要的元素數目。 |
備註
GetGlyphMappingCount 會取得字元對應的數目。
規格需求
最低支援的用戶端 | 適用于 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 |