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 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 inner border of Range.
- Set outer border of Range.