# `GSComponent.GSComponentAlignment`

*Enumeration*

A policy or result of automatically positioning a component.

## Declaration

```swift
enum Alignment
```

```objc
enum GSComponentAlignment : int8_t;
```

```python
GSComponentAlignment
```

## Topics

### Enumeration Cases

- [`GSComponentAlignment.GSAlignmentAligned`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentAligned) — Both coordinates were positioned automatically.
- [`GSComponentAlignment.GSAlignmentDefault`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentDefault) — Automatic positioning follows the normal eligibility rules.
- [`GSComponentAlignment.GSAlignmentDisable`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentDisable) — Automatic positioning is disabled.
- [`GSComponentAlignment.GSAlignmentForce`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentForce) — Automatic positioning is enabled regardless of normal alignment eligibility.
- [`GSComponentAlignment.GSAlignmentHorizontal`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentHorizontal) — Only the horizontal coordinate is positioned automatically.
- [`GSComponentAlignment.GSAlignmentNoAligned`](/Core/GlyphsCore/GSComponent/GSComponentAlignment/GSAlignmentNoAligned) — The component was not positioned automatically.

## See Also

### Alignment

- [`GSComponent.alignment`](/Core/GlyphsCore/GSComponent/alignment) — The policy for automatic positioning.
- [`GSComponent setAlignmentFast:`](/Core/GlyphsCore/GSComponent/setAlignmentFast:) — Sets the automatic-positioning policy without undo, change notifications, or layer updates.
- [`GSComponent.effectiveAlignment`](/Core/GlyphsCore/GSComponent/effectiveAlignment) — The result of the most recent automatic positioning.
- [`GSComponent.alignmentType`](/Core/GlyphsCore/GSComponent/alignmentType) — The coordinate mode used for automatic base-glyph alignment.
- [`GSComponent.doesAlign`](/Core/GlyphsCore/GSComponent/doesAlign) — Whether the component participates in automatic base-glyph alignment under the current policy.
- [`GSComponent.shouldAlign`](/Core/GlyphsCore/GSComponent/shouldAlign) — Whether the component and containing glyph normally qualify for automatic base-glyph alignment.
- [`GSComponent enableAlignment`](/Core/GlyphsCore/GSComponent/enableAlignment) — Enables automatic positioning.

