---
title: "Aspose::Page::EPS::PageConstants::GetMargins method"
url: "https://reference.aspose.com/page/cpp/aspose.page.eps/pageconstants/getmargins/"
product: "Aspose.Page for C++"
description: "Aspose::Page::EPS::PageConstants::GetMargins method. Gets page margins values in C++."
---

## PageConstants::GetMargins(const System::String\&) method


Gets page margins values

```cpp
static System::SharedPtr<Margins> Aspose::Page::EPS::PageConstants::GetMargins(const System::String &marginsSize)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Margins](../../../aspose.page/margins/)
* Class [String](../../../system/string/)
* Class [PageConstants](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
## PageConstants::GetMargins(System::SharedPtr\<Margins\>, System::String) method


Calculate page margins мфдгуы in specified orientation

```cpp
static System::SharedPtr<Margins> Aspose::Page::EPS::PageConstants::GetMargins(System::SharedPtr<Margins> margins, System::String orientation)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Margins](../../../aspose.page/margins/)
* Class [String](../../../system/string/)
* Class [PageConstants](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
