Copy Cell Style

Copies the style of one cell to another cell.


⬅️INPUT

Parameter

Type

Required

Description

FilePath

String

✅Yes

Excel file path

Data

Byte[]

✅Yes

Excel file data (byte array)

SheetName

String

❌No

Target sheet name

FromCell

String

✅Yes

Source cell address

ToCell

String

✅Yes

Target cell address

IncludeFormula

Boolean

❌No

Whether to copy the formula as well


➡️OUTPUT

Parameter

Type

Description

IsCopyCellStyleSuccessful

Boolean

Whether the operation succeeded

CopyCellStyleMessage

String

Operation result message

CopyCellStyleResult

Byte[]

Updated Excel file


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".