共用方式為


GetMathAlphanumericCode function

Retrieves the math style and the upright Basic Multilingual Plane (BMP) character code that corresponds to the specified trailing byte of a math surrogate pair.

Syntax

 GetMathAlphanumericCode(
  _In_  DWORD chTrail,
  _Out_ WCHAR *pch
);

Parameters

  • chTrail [in]
    Type: DWORD

    The trailing byte of the math surrogate pair. It can be a surrogate trail code (0xDC00—0xDFFF), a letter-like character (0x2102—0x2134), or the UTF-32 value of a higher-plane character such as 0x1D44E.

  • pch [out]
    Type: WCHAR*

    A buffer that receives the upright BMP character code. If no such character exists, pch receives 0.

Return value

Type:

Returns the math style, which consists of a pair of values from the MANCODE enumeration. It can be one of the following values:

0

MBOLD

MITAL

MGREEK

combined with one of following values:

MROMN

MSCRP

MFRAK

MOPEN

MSANS

MMONO

Remarks

This function is exported by the RichEdit 6.0 or later msftedit.dll.

Requirements

Header

Tom.h

DLL

Msftedit.dll

See also

GetMathAlphanumeric