Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.PasteText2 Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  PasteText2 ( [in]   ulong  Offset, [in]   ulong  CodePage, [in]   bool  InsertMode) ;
Native (C++):
HRESULT  PasteText2 ( [in]   unsigned __int64  Offset, [in]   unsigned long  CodePage, [in]   VARIANT_BOOL  InsertMode) ;
Parameters
OffsetPaste offsetCodePageThe code page to convert text to. Set to CP_UNICODE (hardcoded as -5) to specify UTF-16 encoding. InsertModeTrue to insert data, False to overwrite data.
Return Value
S_OK or standard OLE error code.
Remarks

Pastes text from the Clipboard to the given position. Pasted data either ovewrites the current document's data, or is inserted into the document, shifting existing data forward, depending on the InsertMode parameter.

Hex Editor Neo uses the CodePage to convert the text in the Clipboard. Pass the CP_UNICODE (hardcoded as -5) to specify the UTF-16 encoding.

This method requires the CF_UNICODETEXT format to be present in the Clipboard in order to convert to the given encoding. If only CF_TEXT is available, than it operates exactly like the IFileDocument.PasteText method.

< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.