# `GSPenProtocol lineTo:connection:selected:attributes:`

*Instance Method*

## Declaration

```swift
optional func line(to pt: NSPoint, connection: GSNode.Connection, selected: Bool, attributes: [AnyHashable : Any]! = [:])
```

```objc
- (void) lineTo:(NSPoint) pt connection:(GSNodeConnection) connection selected:(BOOL) selected attributes:(NSDictionary *) attributes;
```

```python
lineTo_connection_selected_attributes_(pt: NSPoint, connection: GSNodeConnection, selected: bool, attributes: dict)
```

