Set Range Border with Golang via C++
Contents
[
Hide
]
Possible Usage Scenarios
When you want to set the border for a range, you don’t need to set each cell individually. You can set the border on the range. Aspose.Cells offers this feature. This article provides a sample code that uses Aspose.Cells to set a range border.
Set Range Border in Excel
To set the border of a range in Excel, you can follow these steps:
- Select the range of cells that you want to apply the border to.
- In the “Home” tab of the ribbon, locate the “Font” group.
- Within the “Font” group, click on the “Borders” drop‑down button.

- Choose the type of border that you want to apply from the options in the drop‑down menu. You can choose from preset border styles or customize your own border.
- Once you have selected the desired border style, the border will be applied to the selected range of cells.
Set Range Border using Aspose.Cells
This example shows how to:
- Create a workbook.
- Add data to cells in the first worksheet.
- Create a Range.
- Set the inner border of the range.
- Set the outer border of the range.