# `GSLayer.selectionPath`

*Instance Property*

A cached representation of the selected outline segments.

## Declaration

```swift
var selectionPath: NSBezierPath? { get set }
```

```objc
@property (nonatomic, strong) NSBezierPath * selectionPath;
```

```python
selectionPath() -> NSBezierPath
setSelectionPath_(selectionPath: NSBezierPath)
```

## See Also

### Bezier Paths

- [`GSLayer.bezierPath`](/Core/GlyphsCore/GSLayer/bezierPath) — A cached representation of the layer’s closed path shapes.
- [`GSLayer.openBezierPath`](/Core/GlyphsCore/GSLayer/openBezierPath) — A cached representation of the layer’s open path shapes.
- [`GSLayer drawBezierPath`](/Core/GlyphsCore/GSLayer/drawBezierPath) — A representation of the closed paths and component outlines.
- [`GSLayer drawBezierPath:hasPaths:`](/Core/GlyphsCore/GSLayer/drawBezierPath:hasPaths:) — Creates a representation of the closed paths and component outlines while tracking component recursion.
- [`GSLayer drawOpenBezierPath`](/Core/GlyphsCore/GSLayer/drawOpenBezierPath) — A representation of the open paths in the layer and its components.
- [`GSLayer drawOpenBezierPathFast`](/Core/GlyphsCore/GSLayer/drawOpenBezierPathFast) — Returns the cached representation of open paths without updating it.

