---
title: "draggingImageForRows(with:inColumn:with:offset:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/draggingimageforrows(with:incolumn:with:offset:)"
---

# draggingImageForRows(with:inColumn:with:offset:)

Provides an image to represent dragged rows during a drag operation on the browser.

## Declaration

```swift
func draggingImageForRows(with rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent, offset dragImageOffset: NSPointPointer?) -> NSImage?
```

## Parameters

- `rowIndexes`: Rows the user is dragging.
- `column`: Column with the rows the user is dragging.
- `event`: Mouse drag event.
- `dragImageOffset`: Offset for the returned image: doc://com.apple.documentation/documentation/Foundation/NSZeroPoint: The image is centered under the pointer.

## Return Value

Return Value Image representing the visible cells identified by rowIndexes.

## See Also

### Related Documentation

- [browser(_:draggingImageForRowsWith:inColumn:with:offset:)](appkit/nsbrowserdelegate/browser(_:draggingimageforrowswith:incolumn:with:offset:).md)

### Dragging

- [setDraggingSourceOperationMask(_:forLocal:)](appkit/nsbrowser/setdraggingsourceoperationmask(_:forlocal:).md)
- [canDragRows(with:inColumn:with:)](appkit/nsbrowser/candragrows(with:incolumn:with:).md)
