---
title: "lineStyle(fromName:)"
framework: pdfkit
role: symbol
role_heading: Type Method
path: "pdfkit/pdfannotation/linestyle(fromname:)"
---

# lineStyle(fromName:)

Returns a line style that corresponds to the specified name.

## Declaration

```swift
class func lineStyle(fromName name: String) -> PDFLineStyle
```

## Parameters

- `name`: The name of a line style, which matches the definition in the Adobe PDF Specification.

## See Also

### Configuring Line Annotations

- [startPoint](pdfkit/pdfannotation/startpoint.md)
- [endPoint](pdfkit/pdfannotation/endpoint.md)
- [startLineStyle](pdfkit/pdfannotation/startlinestyle.md)
- [endLineStyle](pdfkit/pdfannotation/endlinestyle.md)
- [name(for:)](pdfkit/pdfannotation/name(for:).md)
