ScriptingParameterEnumerationChoiceCollection#
- class ansys.stk.core.stkobjects.astrogator.ScriptingParameterEnumerationChoiceCollection#
Bases:
IRuntimeTypeInfoProviderScripting Parameter Enumeration Choice Collection.
Overview#
Add an enumeration choice to the collection. |
|
Copy the enumeration choice into the clipboard and removes the enumeration choice from the list. |
|
Retrieve a scripting parameter enumeration choice in the collection by index. |
|
Retrieve a scripting parameter enumeration choice in the collection by name. |
|
Copy the enumeration choice and inserts the copy into the list. |
|
Allow you to iterate through the collection. |
|
Pastes the enumeration choice from the clipboard and inserts into the list. |
|
Remove an enumeration choice. |
Allow you to enumerate through the collection. |
|
Return the size of the collection. |
|
Return the RuntimeTypeInfo interface to access properties at runtime. |
Import detail#
from ansys.stk.core.stkobjects.astrogator import ScriptingParameterEnumerationChoiceCollection
Property detail#
- property ScriptingParameterEnumerationChoiceCollection._new_enum: EnumeratorProxy#
Allow you to enumerate through the collection.
- property ScriptingParameterEnumerationChoiceCollection.count: int#
Return the size of the collection.
- property ScriptingParameterEnumerationChoiceCollection.provide_runtime_type_info: RuntimeTypeInfo#
Return the RuntimeTypeInfo interface to access properties at runtime.
Method detail#
- ScriptingParameterEnumerationChoiceCollection.add(self, choice_name: str) ScriptingParameterEnumerationChoice#
Add an enumeration choice to the collection.
- Parameters:
choice_name :
str- Returns:
ScriptingParameterEnumerationChoice
- ScriptingParameterEnumerationChoiceCollection.cut(self, index_or_name: Any) None#
Copy the enumeration choice into the clipboard and removes the enumeration choice from the list.
- ScriptingParameterEnumerationChoiceCollection.get_item_by_index(self, index: int) ScriptingParameterEnumerationChoice#
Retrieve a scripting parameter enumeration choice in the collection by index.
- Parameters:
index :
int- Returns:
ScriptingParameterEnumerationChoice
- ScriptingParameterEnumerationChoiceCollection.get_item_by_name(self, name: str) ScriptingParameterEnumerationChoice#
Retrieve a scripting parameter enumeration choice in the collection by name.
- Parameters:
name :
str- Returns:
ScriptingParameterEnumerationChoice
- ScriptingParameterEnumerationChoiceCollection.insert_copy(self, choice: ScriptingParameterEnumerationChoice) ScriptingParameterEnumerationChoice#
Copy the enumeration choice and inserts the copy into the list.
- Parameters:
choice :
ScriptingParameterEnumerationChoice- Returns:
ScriptingParameterEnumerationChoice
- ScriptingParameterEnumerationChoiceCollection.item(self, index_or_name: Any) ScriptingParameterEnumerationChoice#
Allow you to iterate through the collection.
- Parameters:
index_or_name :
Any- Returns:
ScriptingParameterEnumerationChoice
- ScriptingParameterEnumerationChoiceCollection.paste(self) ScriptingParameterEnumerationChoice#
Pastes the enumeration choice from the clipboard and inserts into the list.
- Returns:
ScriptingParameterEnumerationChoice