---
title: "Aspose::Cells::Drawing::Texts::ShapeTextAlignment::GetTopMarginPt method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.drawing.texts/shapetextalignment/gettopmarginpt/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Drawing::Texts::ShapeTextAlignment::GetTopMarginPt method. Returns the top margin in unit of Points in C++."
---

## ShapeTextAlignment::GetTopMarginPt method


Returns the top margin in unit of Points.

```cpp
double Aspose::Cells::Drawing::Texts::ShapeTextAlignment::GetTopMarginPt()
```


## Examples


```cpp
if (shapeTextAlignment.GetTopMarginPt() != 2.0)
{
    shapeTextAlignment.SetTopMarginPt(2.0);
}
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ShapeTextAlignment](../)
* Namespace [Aspose::Cells::Drawing::Texts](../../)
* Library [Aspose.Cells for C++](../../../)
