---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/shapestyle
---

# ShapeStyle

## Overview

`ShapeStyle` is a type in Aspose.PDF FOSS for Go.
Inherits from: `LineStyle`.

ShapeStyle combines a stroke (LineStyle) with an optional fill color.

Properties: `Cap`, `Color`, `DashPattern`, `DashPhase`, `FillColor`, `FillGradient`, and 5 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `FillColor` | `*Color` | Read/Write | Gets the fill color. |
| `FillPattern` | `string` | Read/Write | Gets the fill pattern. |
| `FillGradient` | `Gradient` | Read/Write | Gets the fill gradient. |
| `FillTiling` | `*TilingPattern` | Read/Write | Gets the fill tiling. |
| `Color` | `*Color` | Read/Write | Gets the color. |
| `Width` | `float64` | Read/Write | Gets the width. |
| `DashPattern` | `[]float64` | Read/Write | Gets the dash pattern. |
| `DashPhase` | `float64` | Read/Write | Gets the dash phase. |
| `Cap` | `LineCap` | Read/Write | Gets the cap. |
| `Join` | `LineJoin` | Read/Write | Gets the join. |
| `MiterLimit` | `float64` | Read/Write | Gets the miter limit. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)