---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/borders
---

# Borders

## Overview

`Borders` is a class in Aspose.Cells FOSS for C++.

Represents borders.

This class declares 21 methods for Borders objects in C++ programs.
Available methods include: `Border`, `Borders`, `Clone`, `GetBottom`, `GetDiagonal`, `GetDiagonalDown`, `GetDiagonalUp`, `GetLeft`, `GetRight`, `GetTop`, `SetBottom`, `SetDiagonal`, and 5 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `Border`.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Border` | `Border` | Read | Gets the border. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Border()` → `Border` | Gets the left border. |
| `Border()` → `Border` | Gets the right border. |
| `Border()` → `Border` | Gets the top border. |
| `Border()` → `Border` | Gets the bottom border. |
| `Border()` → `Border` | Gets the diagonal border. |
| `Borders()` | Initializes a new instance of the class. |
| `GetLeft()` → `Border` | Gets the left border. |
| `SetLeft(value: Border)` | Sets the left border. |
| `GetRight()` → `Border` | Gets the right border. |
| `SetRight(value: Border)` | Sets the right border. |
| `GetTop()` → `Border` | Gets the top border. |
| `SetTop(value: Border)` | Sets the top border. |
| `GetBottom()` → `Border` | Gets the bottom border. |
| `SetBottom(value: Border)` | Sets the bottom border. |
| `GetDiagonal()` → `Border` | Gets the diagonal border. |
| `SetDiagonal(value: Border)` | Sets the diagonal border. |
| `GetDiagonalUp()` → `bool` | Gets or sets a value indicating whether diagonal up. |
| `SetDiagonalUp(value: bool)` | Sets a value indicating whether diagonal up. |
| `GetDiagonalDown()` → `bool` | Gets or sets a value indicating whether diagonal down. |
| `SetDiagonalDown(value: bool)` | Sets a value indicating whether diagonal down. |
| `Clone()` → `Borders` | Creates a copy of the current instance. The borders. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)