ScriptTraceDiagramVariableCollection¶
- class ScriptTraceDiagramVariableCollection.ScriptTraceDiagramVariableCollection(iterable=(), /)¶
- Bases: - listRepresents a collection of ScriptTraceDiagramVariables, used in a diagram.- __iter__() Iterable[ScriptTraceDiagramVariable]¶
 - __next__() ScriptTraceDiagramVariable¶
 - __len__() int¶
- Returns the number of variables, used in this diagram.
 - __contains__(diagramVariable: ScriptTraceDiagramVariable) bool¶
- Returns, wether this collection contains the given ScriptTraceDiagramVariable.Allows usage of ‘in’ and ‘not in’ operators.
 - __getitem__(index: int) ScriptTraceDiagramVariable¶
- Gets or sets the diagram variable at the given index.
 - add(variable: ScriptTraceVariable) ScriptTraceDiagramVariable¶
- Creates and adds a ScriptTraceVariable to the diagram. Returns the new ScriptTraceDiagramVariable.
 - remove(index: int) None¶
- remove(diagramVariable: ScriptTraceDiagramVariable) None
- Removes the ScriptTraceDiagramVariable at the given index.
 - clear() None¶
- Removes all ScriptTraceDiagramVariables from the diagram.
 - index_of(diagramVariable: ScriptTraceDiagramVariable) int¶
- Returns the index of the ScriptTraceDiagramVariable in the collection or -1,if the diagramVariable is not part of this diagram.
 - contains(diagramVariable: ScriptTraceDiagramVariable) bool¶
- Returns, wether this collection contains the given ScriptTraceDiagramVariable.