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

# MergeRegion

## Overview

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

Represents merge region.

This class declares 5 methods for MergeRegion objects in C++ programs.
Available methods include: `GetFirstColumn`, `GetFirstRow`, `GetTotalColumns`, `GetTotalRows`, `MergeRegion`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `MergeRegion()` | Initializes a new instance of the class. |
| `GetFirstRow()` → `int` | Gets the first row. |
| `GetFirstColumn()` → `int` | Gets the first column. |
| `GetTotalRows()` → `int` | Gets the total rows. |
| `GetTotalColumns()` → `int` | Gets the total columns. |

## See Also

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