Table of Contents

ExcelFile.CopyColFormats Method

Copies the column definitions, that is formats, widths, hidden/visible, etc from one workbook or sheet to another.

Syntax

Namespace: FlexCel.Core

public abstract void CopyColFormats(ExcelFile sourceWorkbook, Int32 sourceSheet, Int32 sourceCol, Int32 destCol, Int32 colCount)

Parameters

<-> Parameter Type Description
sourceWorkbook ExcelFile The workbook from where the column formats will be copied. If you set this to null, the column formats will be copied from the same file.
sourceSheet Int32 Sheet in the source workbook from where we will copy the column formats.
sourceCol Int32 First column format to copy
destCol Int32 First column where the format will be copied.
colCount Int32 Number of columns to copy.

See also