.. vale off :class:`NamedSelectionCriteria` =============================== .. py:class:: ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.NamedSelectionCriteria Bases: :py:obj:`object` A collection of named selection criteria. .. !! processed by numpydoc !! .. py:currentmodule:: NamedSelectionCriteria Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~Add` - Adds the given criterion to the collection. * - :py:attr:`~Clear` - Clears the collection. * - :py:attr:`~Contains` - Returns whether the collection contains the given criterion. * - :py:attr:`~IndexOf` - Returns the index of the given criterion if it exists in the collection. Returns -1 if it does not * - :py:attr:`~Insert` - Inserts the given criterion into the collection at the given index. * - :py:attr:`~Remove` - Removes the given criterion from the collection if it exists in the collection. Throws an exception if it does not. * - :py:attr:`~RemoveAt` - Removes the criterion at the given index. Throws an exception if the given index is not valid. .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~Count` - The number of criteria in the collection. * - :py:attr:`~Item` - Item property. Property detail --------------- .. py:property:: Count :no-index: :type: Optional[System.Int32] The number of criteria in the collection. .. !! processed by numpydoc !! .. py:property:: Item :no-index: :type: Optional[Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion] Item property. .. !! processed by numpydoc !! Method detail ------------- .. py:method:: Add(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) -> System.Void :no-index: Adds the given criterion to the collection. .. !! processed by numpydoc !! .. py:method:: Clear() -> System.Void :no-index: Clears the collection. .. !! processed by numpydoc !! .. py:method:: Contains(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) -> System.Boolean :no-index: Returns whether the collection contains the given criterion. .. !! processed by numpydoc !! .. py:method:: IndexOf(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) -> System.Int32 :no-index: Returns the index of the given criterion if it exists in the collection. Returns -1 if it does not .. !! processed by numpydoc !! .. py:method:: Insert(index: System.Int32, criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) -> System.Void :no-index: Inserts the given criterion into the collection at the given index. .. !! processed by numpydoc !! .. py:method:: Remove(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) -> System.Boolean :no-index: Removes the given criterion from the collection if it exists in the collection. Throws an exception if it does not. .. !! processed by numpydoc !! .. py:method:: RemoveAt(index: System.Int32) -> System.Void :no-index: Removes the criterion at the given index. Throws an exception if the given index is not valid. .. !! processed by numpydoc !! .. vale on