ITextRange2::UnicodeToHex method (tom.h)

Converts the Unicode character(s) preceding the start position of this text range to a hexadecimal number, and selects it.

Syntax

HRESULT UnicodeToHex();

Return value

Type: HRESULT

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

Remarks

Some Unicode surrogates for hex values from 0x10000 up to 0x10FFFF are for internal use:

Hex values Available for use
0xFDD0 – 0xFDEF, 0xFFF9-0xFFFF Internal use only
0xA – 0xD in the C0 range (0-0x1F) Available for use
C1 range (0x80 – 0x9F) Internal use only

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextRange2