---
title: "name(for:)"
framework: pdfkit
role: symbol
role_heading: Type Method
path: "pdfkit/pdfannotation/name(for:)"
---

# name(for:)

Returns the name of the line style, which matches the definition in the Adobe PDF Specification.

## Declaration

```swift
class func name(for style: PDFLineStyle) -> String
```

## Parameters

- `style`: A line style to get a name for.

## 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)
- [lineStyle(fromName:)](pdfkit/pdfannotation/linestyle(fromname:).md)
