# `GSElementAttachment`

*Enumeration*

A placement or fitting option for attaching a corner or cap component to a path.

## Declaration

```swift
enum GSElementAttachment
```

```objc
enum GSElementAttachment : int8_t;
```

```python
GSElementAttachment
```

## Overview

Placement values are mutually exclusive.

## Topics

### Enumeration Cases

- [`GSElementAttachment.GSElementAttachmentCenter`](/Core/GlyphsCore/GSElementAttachment/GSElementAttachmentCenter) — Centers the component on the attachment.
- [`GSElementAttachment.GSElementAttachmentLeft`](/Core/GlyphsCore/GSElementAttachment/GSElementAttachmentLeft) — Aligns the component with the left side of the attachment.
- [`GSElementAttachment.GSElementAttachmentNeutral`](/Core/GlyphsCore/GSElementAttachment/GSElementAttachmentNeutral) — Preserves the component orientation instead of aligning it with either side of the attachment.
- [`GSElementAttachment.GSElementAttachmentRight`](/Core/GlyphsCore/GSElementAttachment/GSElementAttachmentRight) — Aligns the component with the right side of the attachment.

