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

# StructureAttribute

## Overview

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

A single tagged-PDF structure attribute (key plus one typed value).

This class provides 10 methods for working with StructureAttribute objects in .NET programs.
Available methods include: `GetArrayNumberValue`, `GetNameValue`, `GetNumberValue`, `GetStringValue`, `SetArrayNumberValue`, `SetColorValue`, `SetNameValue`, `SetNumberValue`, `SetStringValue`, `StructureAttribute`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Key`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Key` | `AttributeKey` | Read | The attribute key. |

## Methods

| Signature | Description |
|-----------|-------------|
| `StructureAttribute(key: AttributeKey)` | Create an attribute for key with no value yet. |
| `SetNameValue(name: AttributeName)` | Set a /Name value. |
| `SetNumberValue(value: double)` | Set a numeric value. |
| `SetArrayNumberValue(value: double?[])` | Set an array-of-number value. |
| `SetColorValue(color: Aspose.Pdf.Color)` | Set a colour value (stored as a 3-component RGB array). |
| `SetStringValue(value: string)` | Set a string value. |
| `GetNameValue()` | The /Name value, or null when the attribute holds another kind. |
| `GetNumberValue()` | The numeric value, or null when the attribute holds another kind. |
| `GetArrayNumberValue()` | The array-of-number value, or null when the attribute holds another kind. |
| `GetStringValue()` | The string value, or null when the attribute holds another kind. |

## See Also

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