Skip to main content
ITextFont2::GetPositionSubSuper method

Gets the subscript or superscript position relative to the baseline.

Syntax


HRESULT GetPositionSubSuper(
  [out, retval]  long *pValue
);

Parameters

pValue [out, retval]

Type: long*

The subscript or superscript position relative to the baseline.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Remarks

The subscript or superscript position is relative to the baseline as a percent of the font height.

Subscripts and superscripts in math zones are handled using the tomSubscript, tomSuperscript, tomSubSup, and tomLeftSubSup mathematical objects. See ITextRange2::GetInlineObject.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextFont2
ITextFont2::SetPositionSubSuper