---
title: NSGraphicsContext.AttributeKey
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsgraphicscontext/attributekey
---

# NSGraphicsContext.AttributeKey

Constants that specify the dictionary keys for the attributes of the graphics context.

## Declaration

```swift
struct AttributeKey
```

## Discussion

Discussion You use these dictionary keys with init(attributes:) and attributes.

## Topics

### Attribute Keys

- [destination](appkit/nsgraphicscontext/attributekey/destination.md)
- [representationFormat](appkit/nsgraphicscontext/attributekey/representationformat.md)

### Initializers

- [init(rawValue:)](appkit/nsgraphicscontext/attributekey/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting Information About the Context

- [attributes](appkit/nsgraphicscontext/attributes.md)
- [NSGraphicsContext.RepresentationFormatName](appkit/nsgraphicscontext/representationformatname.md)
- [isFlipped](appkit/nsgraphicscontext/isflipped.md)
