# Auto Fit Columns

Automatically adjusts the width of the specified columns to fit the content.


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅ Yes    | Path of the Excel file |
| `Data`    | `Byte[]` | ✅ Yes    | Binary data of the Excel file |
| `SheetName` | `String` | ❌ No     | Sheet name  |
| `Column`  | `String` | ❌ No     | Column(s)   |


---

### **➡️OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsAutoFitColumnsSuccessful` | `Boolean` | Whether the operation succeeded |
| `AutoFitColumnsMessage` | `String` | Result message |
| `AutoFitColumnsResult` | `Byte[]` | Updated Excel file (binary) |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |