取得使用中範圍內嵌物件的屬性。
語法
HRESULT GetInlineObject(
[out] long *pType,
[out] long *pAlign,
[out] long *pChar,
[out] long *pChar1,
[out] long *pChar2,
[out] long *pCount,
[out] long *pTeXStyle,
[out] long *pcCol,
[out] long *pLevel
);
參數
[out] pType
類型: long*
內嵌物件類型可以是下列其中一項:
tomSimpleText
tomRuby
tomHorzVert
tomWarichu
tomAccent
tomBox
tomBoxedFormula
tomBrackets
tomBracketsWithSeps
tomEquationArray
tomFraction
tomFunctionApply
tomLeftSubSup
tomLowerLimit
tomMatrix
tomNary
tomOpChar
tomOverbar
tomPhantom
tomRadical
tomSlashedFraction
tomStack
tomStretchStack
tomSubscript
tomSubSup
tomSuperscript
tomUnderbar
tomUpperLimit
[out] pAlign
類型: long*
內嵌物件對齊方式,這可以是下列其中一個意義,視內嵌物件類型而定:
| 內嵌物件類型 | Align 參數的意義 |
|---|---|
| tomRuby | |
| tomBox | |
| tomBoxedFormula | |
| tomBrackets | |
| tomEquationArray | |
| tomMatrix | |
| tomNary | |
| tomPhantom | |
| tomRadical | tomShowDegPlaceHldr |
| tomSubSup | tomSubSupAlign |
| tomStretchStack |
[out] pChar
類型: long*
內嵌物件字元。
下表顯示每個物件類型的值。
| 內嵌物件類型 | 對齊參數的意義 |
|---|---|
| tomAccent | 輔色 (U+0300—U+36F、U+20D0—U+20EF) |
| tomBoxedFormula | 矩形機箱的U+25AD |
| tomB | 左括弧。 默認值:U+0028。 |
| tomBracketsWithSeps | 具有分隔符的左括號。 默認值:U+0028 |
| tomEquationArray | U+2588 |
| tomFraction | 一般內建分數:U+002F;小數值分數:U+2298 |
| tomFunctionApply | U+2061 |
| tomLeftSubSup | U+005E |
| tomLowerLimit | U+252C |
| tomMatrix |
|
| tomNary | n 元符號 |
| tomOpChar | 無建置運算子的內部用途 |
| tomOverbar | U+00AF |
| tomPhantom |
|
| tomRadical |
|
| tomSlashedFraction |
|
| tomStack | U+00A6 |
| tomStretchStack | 水平延展字元 (請參閱 Unicode 技術附註 28 附錄 B 以取得清單) |
| tomSubscript | U+005E |
| tomSubSup | U+005E |
| tomSuperscript | U+005F |
| tomUnderbar | U+2581 |
| tomUpperLimit | U+2534 |
[out] pChar1
類型: long*
結尾 tomB,字元 。 如需清單,請參閱 Unicode 技術附註 28 附錄 B.字元關鍵詞和屬性。
[out] pChar2
類型: long*
tomB的分隔符WithSep:
U+007C:沒有額外間距的垂直列
U+2223:具有額外間距的垂直列
[out] pCount
類型: long*
自變數的內嵌物件計數。
[out] pTeXStyle
類型: long*
內嵌物件TeX樣式,可以是下列其中一個值。
注意tomStyleDefault 行為取決於內容。
tomStyleDefault
tomStyleScriptScriptCramped
tomStyleScriptScript
tomStyleScriptCramped
tomStyleScript
tomStyleTextCramped
tomStyleText
tomStyleDisplayCramped
tomStyleDisplay
[out] pcCol
類型: long*
僅限 tomMatrix (數據 行的內嵌物件計數) 。
[out] pLevel
類型: long*
內嵌物件 0 型巢狀層級。
傳回值
類型: HRESULT
如果方法成功,則會傳回 NOERROR。 否則,它會傳回 HRESULT 錯誤碼。
備註
Unicode Technical Note 28 會在使用中結束字元是內嵌對象開始分隔符時,詳細說明對齊和字元值。
當該字元不是起始分隔符時,字元和數據行參數會設定為 0,計數會設定為以 0 為基礎的自變數索引,而其他參數則會根據最內嵌物件自變數的作用中結束字元屬性來設定。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows 8 [僅限傳統型應用程式] |
| 最低支援的伺服器 | Windows Server 2012 [僅限傳統型應用程式] |
| 目標平台 | Windows |
| 標頭 | tom.h |
| Dll | Msftedit.dll |