## HorizontalPageBreakCollection::Add(int32_t, int32_t, int32_t) method


Adds a horizontal page break to the collection.

```cpp
int32_t Aspose::Cells::HorizontalPageBreakCollection::Add(int32_t row, int32_t startColumn, int32_t endColumn)
```


| Parameter | Type | Description |
| --- | --- | --- |
| row | int32_t | [Row](../../row/) index, zero based. |
| startColumn | int32_t | Start column index, zero based. |
| endColumn | int32_t | End column index, zero based. |

## ReturnValue

[HorizontalPageBreak](../../horizontalpagebreak/) object index.
## Remarks



This method is used to add a horizontal pagebreak within a print area.
## See Also

* Class [Vector](../../vector/)
* Class [HorizontalPageBreakCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## HorizontalPageBreakCollection::Add(int32_t) method


Adds a horizontal page break to the collection.

```cpp
int32_t Aspose::Cells::HorizontalPageBreakCollection::Add(int32_t row)
```


| Parameter | Type | Description |
| --- | --- | --- |
| row | int32_t | [Cell](../../cell/) row index, zero based. |

## ReturnValue

[HorizontalPageBreak](../../horizontalpagebreak/) object index.
## Remarks



Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.
## See Also

* Class [Vector](../../vector/)
* Class [HorizontalPageBreakCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## HorizontalPageBreakCollection::Add(int32_t, int32_t) method


Adds a horizontal page break to the collection.

```cpp
int32_t Aspose::Cells::HorizontalPageBreakCollection::Add(int32_t row, int32_t column)
```


| Parameter | Type | Description |
| --- | --- | --- |
| row | int32_t | [Cell](../../cell/) row index, zero based. |
| column | int32_t | [Cell](../../cell/) column index, zero based. |

## ReturnValue

[HorizontalPageBreak](../../horizontalpagebreak/) object index.
## Remarks



Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.
## See Also

* Class [Vector](../../vector/)
* Class [HorizontalPageBreakCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## HorizontalPageBreakCollection::Add(const U16String\&) method


Adds a horizontal page break to the collection.

```cpp
int32_t Aspose::Cells::HorizontalPageBreakCollection::Add(const U16String &cellName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| cellName | const U16String\& | [Cell](../../cell/) name. |

## ReturnValue

[HorizontalPageBreak](../../horizontalpagebreak/) object index.
## Remarks



Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.
## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [HorizontalPageBreakCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## HorizontalPageBreakCollection::Add(const char16_t*) method


Adds a horizontal page break to the collection.

```cpp
int32_t Aspose::Cells::HorizontalPageBreakCollection::Add(const char16_t *cellName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| cellName | const char16_t* | [Cell](../../cell/) name. |

## ReturnValue

[HorizontalPageBreak](../../horizontalpagebreak/) object index.
## Remarks



Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently.
## See Also

* Class [Vector](../../vector/)
* Class [HorizontalPageBreakCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
