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

# StructureAttributes

## Overview

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

An owner-scoped set of StructureAttribute objects attached to a structure element (one PDF attribute dictionary with a fixed /O owner).

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

## Methods

| Signature | Description |
|-----------|-------------|
| `GetAttribute(key: AttributeKey)` | Get the attribute for key, or null. |
| `SetAttribute(attribute: StructureAttribute)` | Add or replace an attribute. |

## See Also

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