ScriptingParameterEnumerationChoiceCollection#

class ansys.stk.core.stkobjects.astrogator.ScriptingParameterEnumerationChoiceCollection#

Bases: IRuntimeTypeInfoProvider

Scripting Parameter Enumeration Choice Collection.

Overview#

add

Add an enumeration choice to the collection.

cut

Copy the enumeration choice into the clipboard and removes the enumeration choice from the list.

get_item_by_index

Retrieve a scripting parameter enumeration choice in the collection by index.

get_item_by_name

Retrieve a scripting parameter enumeration choice in the collection by name.

insert_copy

Copy the enumeration choice and inserts the copy into the list.

item

Allow you to iterate through the collection.

paste

Pastes the enumeration choice from the clipboard and inserts into the list.

remove

Remove an enumeration choice.

_new_enum

Allow you to enumerate through the collection.

count

Return the size of the collection.

provide_runtime_type_info

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.

Parameters:

index_or_name : Any

Returns:

None

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

ScriptingParameterEnumerationChoiceCollection.remove(self, index_or_name: Any) None#

Remove an enumeration choice.

Parameters:

index_or_name : Any

Returns:

None