Contents

deselectAll(_:)

Deselects all selected rows or columns if empty selection is allowed; otherwise does nothing.

Declaration

func deselectAll(_ sender: Any?)

Parameters

  • sender:

    Typically the object that sent the message.

Discussion

Posts selectionDidChangeNotification to the default notification center if the selection does in fact change.

As a target-action method, deselectAll(_:) checks with the delegate before changing the selection, using selectionShouldChange(in:).

See Also

Related Documentation

Selecting Columns and Rows