# `GSComponent.effectiveAlignment`

*Instance Property*

The result of the most recent automatic positioning.

## Declaration

```swift
var effectiveAlignment: GSComponent.Alignment { get set }
```

```objc
@property (nonatomic) GSComponentAlignment effectiveAlignment;
```

```python
effectiveAlignment() -> GSComponentAlignment
setEffectiveAlignment_(effectiveAlignment: GSComponentAlignment)
```

## Discussion

`GSAlignmentNoAligned` indicates that the component was not positioned automatically. `GSAlignmentDefault` indicates that automatic positioning has not been evaluated. Use [`GSComponent.alignment`](/Core/GlyphsCore/GSComponent/alignment) to configure automatic positioning.

## See Also

### Alignment

- [`GSComponent.GSComponentAlignment`](/Core/GlyphsCore/GSComponent/GSComponentAlignment) — A policy or result of automatically positioning a component.
- [`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.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.

