.. role:: ts-api-decorator

.. _SelectionMode:

#############
SelectionMode
#############

.. container:: ts-api-section

   Enumerates the modes to be used when performing selections.



.. container:: api-index-section

   .. rubric:: Enumeration Members

   .. rst-class:: api-index-list-item api-kind-enummember api-parent-kind-enum

   * :ref:`SelectionMode.Add`
   * :ref:`SelectionMode.Set`
   * :ref:`SelectionMode.Toggle`





------------

Enumeration Members
===================

.. rst-class:: ts-api-section

.. _SelectionMode.Add:

Add
---

Adds the item to the contents of the selection set.

.. rst-class:: ts-api-section

.. _SelectionMode.Set:

Set
---

Sets the contents of the selection set to the supplied item.
All other selected items will be removed from the selection set.

.. rst-class:: ts-api-section

.. _SelectionMode.Toggle:

Toggle
------

If the selection item is in the selection set, removes it.
If it is not in the selection set, adds it.

