---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/HeadingPair
---

# HeadingPair

## Overview

`HeadingPair` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IHeadingPair`.

Represents a heading pair indicating a grouping of document parts.

This class provides 4 methods for working with HeadingPair objects in Java programs.
Available methods include: `getCount`, `getName`, `initInternal`, `toString`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `count`, `name`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `name` | `String` | Read | Gets the name. |
| `count` | `int` | Read | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `initInternal(name: String, count: int)` | Initializes internal state. |
| `getName()` → `String` | Returns the name. |
| `getCount()` → `int` | Returns the count. |
| `toString()` → `String` | Returns a string representation of the HeadingPair |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)