Editor_ConvertCsv

現在の文書のCSV形式を変換します。このインライン関数を使うか、または EE_CONVERT_CSV メッセージを直接送ることができます。

HRESULT Editor_ConvertCsv( HWND hwnd, int iDestMode, UINT nFlags = 0, int nSepCount = 0, const int* pcxSepWidths = NULL );

パラメータ

hwnd

EmEditor ビューまたはフレームのウィンドウ ハンドルを指定します。

iDestMode

Specifies the index of the CSV format you want to convert the current document to. 0 means fixed-width columns format (non-CSV). 1 means the first defined format in the CSV tab of the Customize dialog box (Comma separeted by default).

nFlags

次の値の組み合わせになります。

意味

CSV_HALF_WIDTH

Assumes all half-width characters to improve the speed.

CSV_DISCARD_UNDO

Discards undo information to improve the speed.

nSepCount

If the current document is a non-CSV document, and if you want to convert the current document of fixed-width columns to a CSV document, this parameter specifies the number of separators, and it must be equal to the size of the array specified in the pcxSepWidths parameter. This parameter is ignored if the current document is a CSV document.

pcxSepWidths

Specifies the array of integers representing the widths between separators if the nSepCount parameter is non-zero.

戻り値

成功すると S_OK を返します。

バージョン

EmEditor Professional Version 19.8 以上で利用できます。