---
title: "copyRuler(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstext/copyruler(_:)"
---

# copyRuler(_:)

This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries.

## Declaration

```swift
func copyRuler(_ sender: Any?)
```

## See Also

### Action methods for editing

- [selectAll(_:)](appkit/nstext/selectall(_:).md)
- [copy(_:)](appkit/nstext/copy(_:).md)
- [cut(_:)](appkit/nstext/cut(_:).md)
- [paste(_:)](appkit/nstext/paste(_:).md)
- [copyFont(_:)](appkit/nstext/copyfont(_:).md)
- [pasteFont(_:)](appkit/nstext/pastefont(_:).md)
- [pasteRuler(_:)](appkit/nstext/pasteruler(_:).md)
- [delete(_:)](appkit/nstext/delete(_:).md)
