.. vale off :class:`OptionsProperty` ======================== .. py:class:: ansys.mechanical.stubs.v241.Ansys.ACT.Mechanical.AdditionalProperties.OptionsProperty Bases: :py:obj:`object` Provides a way to create properties that show up as a drop down in the UI. .. !! processed by numpydoc !! .. py:currentmodule:: OptionsProperty Overview -------- .. tab-set:: .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~Options` - Options shown in the drop-down, represented by a dictionary of int -> string. * - :py:attr:`~Name` - The name of the property. * - :py:attr:`~DisplayName` - The name of the property shown in the UI. If not set, the Name property is used. * - :py:attr:`~GroupName` - The group name of the property shown in the UI, and used to separate properties based on group name. * - :py:attr:`~Tooltip` - The tooltip of the property in the UI. * - :py:attr:`~Value` - The stored value of the property. * - :py:attr:`~ValueString` - Get the string representation of the value. * - :py:attr:`~ReadOnly` - Returns whether a property is readonly. Property detail --------------- .. py:property:: Options :no-index: :type: Optional[System.Collections.Generic.IDictionary[System.Object,System.Object]] Options shown in the drop-down, represented by a dictionary of int -> string. Where the int represents the option, and string represents string shown in the UI. When an option is selected the Value property of the property is set to to the option int. .. !! processed by numpydoc !! .. py:property:: Name :no-index: :type: Optional[System.String] The name of the property. .. !! processed by numpydoc !! .. py:property:: DisplayName :no-index: :type: Optional[System.String] The name of the property shown in the UI. If not set, the Name property is used. .. !! processed by numpydoc !! .. py:property:: GroupName :no-index: :type: Optional[System.String] The group name of the property shown in the UI, and used to separate properties based on group name. .. !! processed by numpydoc !! .. py:property:: Tooltip :no-index: :type: Optional[System.String] The tooltip of the property in the UI. .. !! processed by numpydoc !! .. py:property:: Value :no-index: :type: Optional[System.Object] The stored value of the property. .. !! processed by numpydoc !! .. py:property:: ValueString :no-index: :type: Optional[System.String] Get the string representation of the value. .. !! processed by numpydoc !! .. py:property:: ReadOnly :no-index: :type: Optional[System.Boolean] Returns whether a property is readonly. .. !! processed by numpydoc !! .. vale on