AUTOFILL_INFO

Used by EE_AUTOFILL message.

typedef struct _AUTOFILL_INFO {
	UINT cbSize;
	POINT_PTR ptSrcCellStart;
	POINT_PTR ptSrcCellEnd;
	POINT_PTR ptDestCellStart;
	POINT_PTR ptDestCellEnd;
	DWORD dwFlags;
	INT64 nIncrement;
} AUTOFILL_INFO;

Members

cbSize

Size of this data structure, in bytes. Set this member to sizeof( AUTOFILL_INFO ) before sending the EE_AUTOFILL message.

ptSrcCellStart

Specifies the starting position of the source cells.

ptSrcCellEnd

Specifies the ending position of the source cells.

ptDestCellStart

Specifies the starting position of the destination cells.

ptDestCellEnd

Specifies the ending position of the destination cells.

dwFlags

Specifies a combination of the following values.

FLAG_FILL_DEFAULT

EmEditor determines the values to fill the destination cells.

FLAG_FILL_COPY

Copies the values from the source range to the target range, repeating if necessary.

FLAG_FILL_SERIES

Extends the values in the source range into the target range as a series.

FLAG_FILL_FLASH

Performs the Flash Fill action, i.e. extends the values from the source range into the target range based on the detected pattern. This flag is valid only for the vertical direction.

FLAG_FILL_DONT_OVERWRITE

The AutoFill action will not overwrite the existing cells in the target range. Cannot combine with FLAG_FILL_FLASH.

FLAG_FILL_REPEAT

The AutoFill action will be repeated with the new value on a non-empty cell. Cannot combine with FLAG_FILL_FLASH.

nIncrement

Specifies the number of increment for a series if only one cell is specified for the source range and if FLAG_FILL_SERIES is specified for the dwFlags member.

Version

Supported on Version 17.5 or later.