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

# AlignmentValue

## Overview

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

Represents alignment value.

This class declares 20 methods for AlignmentValue objects in C++ programs.
Available methods include: `AlignmentValue`, `Clone`, `GetHorizontal`, `GetIndentLevel`, `GetReadingOrder`, `GetRelativeIndent`, `GetShrinkToFit`, `GetTextRotation`, `GetVertical`, `GetWrapText`, `HorizontalAlignment`, `SetHorizontal`, and 8 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `HorizontalAlignment`, `VerticalAlignment`.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `HorizontalAlignment` | `HorizontalAlignment` | Read | Gets the horizontal alignment. |
| `VerticalAlignment` | `VerticalAlignment` | Read | Gets the vertical alignment. |

## Methods

| Signature | Description |
|-----------|-------------|
| `HorizontalAlignment()` → `HorizontalAlignment` | Gets or sets the horizontal. |
| `VerticalAlignment()` → `VerticalAlignment` | Gets or sets the vertical. |
| `AlignmentValue()` | Initializes a new instance of the class. |
| `GetHorizontal()` → `HorizontalAlignment` | Gets or sets the horizontal. |
| `SetHorizontal(value: HorizontalAlignment)` | Sets the horizontal value. |
| `GetVertical()` → `VerticalAlignment` | Gets or sets the vertical. |
| `SetVertical(value: VerticalAlignment)` | Sets the vertical value. |
| `GetWrapText()` → `bool` | Gets or sets a value indicating whether wrap text. |
| `SetWrapText(value: bool)` | Sets the wrap text value. |
| `GetIndentLevel()` → `int` | Gets or sets the indent level. |
| `SetIndentLevel(value: int)` | Sets the indent level value. |
| `GetTextRotation()` → `int` | Gets or sets the text rotation. |
| `SetTextRotation(value: int)` | Sets the text rotation value. |
| `GetShrinkToFit()` → `bool` | Gets or sets a value indicating whether shrink to fit. |
| `SetShrinkToFit(value: bool)` | Sets the shrink to fit value. |
| `GetReadingOrder()` → `int` | Gets or sets the reading order. |
| `SetReadingOrder(value: int)` | Sets the reading order value. |
| `GetRelativeIndent()` → `int` | Gets or sets the relative indent. |
| `SetRelativeIndent(value: int)` | Sets the relative indent value. |
| `Clone()` → `AlignmentValue` | Creates a copy of the current instance. The alignment value. |

## See Also

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