# strokeGradient

> The stroke gradient to use when using Painter2D.Stroke.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Gradient strokeGradient { get; set; }
```

### Remarks

Setting a stroke gradient will override the currently set [Painter2D.strokeColor](/engine/6000.0/script-reference/unityengine/uielements/painter2d/strokecolor.md). Setting a null stroke gradient will remove it and fall back on the currently set [Painter2D.strokeColor](/engine/6000.0/script-reference/unityengine/uielements/painter2d/strokecolor.md).
