IUIX_Obj::CalcStringSize Method
From PDF XChange PDF SDK
Calculates size in points for the given string.
Syntax
HRESULT CalcStringSize([in] LPWSTR pString, [in] LONG nLength, [in] IUIX_Font* pFont, [in, out] SIZE* pSize, [in, defaultvalue(0)] LONG nFlags);
Parameters
- pString
- [in] Value of LPWSTR containing the string with text.
- nLength
- [in] Value of LONG containing the length of the string.
- pFont
- [in] Pointer to IUIX_Font containing a font that is being used.
- pSize
- [in, out] Pointer to SIZE containing the resulting string size.
- nFlags
- [in, defaultvalue(0)] Value of LONG containing the draw string flags.
Return Value
Returns S_OK if operation was successful or error code in other cases.