# Set Style

Method that allows various style changes to be made to the cell.


---

### :arrow_left:**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 |
| `Cell`    | `String` | ✅Yes     | Target cell address |
| `FontName` | `String` | ❌No      | Font name   |
| `SetItalic` | `Boolean` | ❌No      | Whether to change italic |
| `Italic`  | `Boolean` | ❌No      | Italic value |
| `SetBold` | `Boolean` | ❌No      | Whether to change bold |
| `Bold`    | `Boolean` | ❌No      | Bold value  |
| `Size`    | `Int32` | ❌No      | Font size   |
| `Color`   | `String` | ❌No      | Font color  |
| `UnderlineStyle` | `String` | ❌No      | Underline style |
| `SetStrikeout` | `Boolean` | ❌No      | Whether to change strikethrough |
| `Strikeout` | `Boolean` | ❌No      | Strikethrough value |
| `ScriptPosition` | `String` | ❌No      | Subscript/superscript position |
| `VerticalAlignment` | `Int32` | ❌No      | Vertical alignment<br>Top = 1<br>Center = 2<br>Bottom = 3<br>Justify = 4<br>Distributed = 5 |
| `HorizontalAlignment` | `Int32` | ❌No      | Horizontal alignment<br>General = 1<br>Left = 2<br>Center = 3<br>Right = 4<br>Fill = 5<br>Justify = 6<br>Center Across Selection = 7<br>Distributed = 8 |
| `NumberFormat` | `String` | ❌No      | Number format |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSetStyleSuccessful` | `String` | Whether the operation succeeded |
| `SetStyleMessage` | `String` | Operation result message |
| `SetStyleResult` | `Byte[]` | Updated Excel file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |