KeyValueCollection#
- class ansys.stk.core.stkobjects.KeyValueCollection#
A collection of keys and values associated with the keys.
Overview#
Given a key, returns associated element. |
|
Determine whether the collection contains the specified key. |
|
Remove all elements. |
|
Remove an element associated with specified key. |
|
Set the value associated with specified key. |
|
Given a key, returns read-only flag. |
|
Given a key, sets read-only flag. |
Import detail#
from ansys.stk.core.stkobjects import KeyValueCollection
Property detail#
- property KeyValueCollection._new_enum: EnumeratorProxy#
Return an enumerator containing the keys in the collection.
Method detail#
- KeyValueCollection.contains(self, key: str) bool #
Determine whether the collection contains the specified key.
- KeyValueCollection.remove_key(self, key: str) bool #
Remove an element associated with specified key.
- KeyValueCollection.set(self, key: str, value: str) None #
Set the value associated with specified key.