---
title: "Class HeadingLevels"
url: "https://reference.aspose.com/pdf/net/aspose.pdf/headinglevels/"
product: "Aspose.PDF for .NET API Reference"
description: "Aspose.Pdf.HeadingLevels class. Represents a class to work with header levels based on font size"
---

## HeadingLevels class

Represents a class to work with header levels based on font size.

```csharp
public class HeadingLevels
```

## Constructors

| Name | Description |
| --- | --- |
| [HeadingLevels](headinglevels/#constructor)() | Creates a new instance of the HeadingLevels class. |
| [HeadingLevels](headinglevels/#constructor_1)(double) | Creates a new instance of the HeadingLevels class. |

## Properties

| Name | Description |
| --- | --- |
| [AllLevels](../../aspose.pdf/headinglevels/alllevels/) { get; } | Gets all heading levels. |

## Methods

| Name | Description |
| --- | --- |
| [AddLevels](../../aspose.pdf/headinglevels/addlevels/)(ICollection&lt;double&gt;) | Adds heading levels. Font size collection should be sorted by decreasing size. |

### See Also

* namespace [Aspose.Pdf](../../aspose.pdf/)
* assembly [Aspose.PDF](../../)


