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

## ShapeTextAlignment::SetTopMarginPt method


Returns the top margin in unit of Points.

```cpp
void Aspose::Cells::Drawing::Texts::ShapeTextAlignment::SetTopMarginPt(double value)
```


## 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++](../../../)
