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

## TextBoxOptions::GetTopMarginPt method


Gets and sets the top margin in unit of Points.

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


## Examples


```cpp
double val = shape.GetTextBoxOptions().GetTopMarginPt();
```

## See Also

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