---
title: "canDragRows(with:at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/candragrows(with:at:)"
---

# canDragRows(with:at:)

Returns a Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point.

## Declaration

```swift
func canDragRows(with rowIndexes: IndexSet, at mouseDownPoint: NSPoint) -> Bool
```

## Parameters

- `rowIndexes`: The row indexes to drag.
- `mouseDownPoint`: The location where the drag was initiated.

## Return Value

Return Value false to disallow the drag.

## See Also

### Dragging

- [dragImageForRows(with:tableColumns:event:offset:)](appkit/nstableview/dragimageforrows(with:tablecolumns:event:offset:).md)
- [setDraggingSourceOperationMask(_:forLocal:)](appkit/nstableview/setdraggingsourceoperationmask(_:forlocal:).md)
- [verticalMotionCanBeginDrag](appkit/nstableview/verticalmotioncanbegindrag.md)
- [draggingDestinationFeedbackStyle](appkit/nstableview/draggingdestinationfeedbackstyle-swift.property.md)
- [setDropRow(_:dropOperation:)](appkit/nstableview/setdroprow(_:dropoperation:).md)
