---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/MarginPartStyle
---

# MarginPartStyle

## Overview

`MarginPartStyle` is a class in Aspose.PDF FOSS for .NET.

One side of a MarginInfo: either a fixed PDF-point value or an auto-fit hint.

This class provides 2 methods for working with MarginPartStyle objects in .NET programs.
Available methods include: `MarginPartStyle`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `IsAuto`, `ValueInPoints`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `IsAuto` | `bool` | Read/Write | Gets or sets the is auto. |
| `ValueInPoints` | `int` | Read/Write | Gets or sets the value in points. |

## Methods

| Signature | Description |
|-----------|-------------|
| `MarginPartStyle(isAuto: bool)` | Calls MarginPartStyle on this MarginPartStyle instance. |
| `MarginPartStyle(valueInPoints: int)` |  |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)