# Sandbox.Stroke.WithAlignment

```csharp
Stroke WithAlignment(StrokeAlignment alignment)
```

Returns a copy with the specified placement on closed shapes.

### Parameters

- `alignment` (`StrokeAlignment`)

### Returns

`Stroke`

Declared in [Sandbox.Stroke](/api/Sandbox.Stroke).
Assembly: `Sandbox.Engine`.
