SymbolIterator Constructor (IEnumerable.ISymbol., Boolean, SymbolIterationMask, Func.ISymbol, Boolean., Func.ISymbol, Boolean.)

Initializes a new instance of the SymbolIterator class.

Namespace:  TwinCAT.Ads.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public SymbolIterator(
    IEnumerable<ISymbol> symbols,
    bool recurse,
    SymbolIterationMask mask,
    Func<ISymbol, bool>? selector,
    Func<ISymbol, bool>? areChildsIterated
)

Parameters

symbols

Type: System.Collections.Generic.IEnumerable.ISymbol.
The symbol collection.

recurse

Type: System.Boolean
if set to true, the iterator works recursively over all subsymbols.

mask

Type: TwinCAT.TypeSystem.SymbolIterationMask
Specifies a mask over the symbols, that filters out specific symbol categories. The default is All and all symbols are shown.

selector

Type: System.Func.ISymbol, Boolean.
Predicate function indicating that symbols are visible for the iteration. The default value null returns all symbols (of the specified mask).

areChildsIterated

Type: System.Func.ISymbol, Boolean.
Predicate function indicating that childs of the actual symbol should be iterated (in recurse mode). The default value iterates all child (of the specified mask).

Reference

SymbolIterator Class

SymbolIterator Overload

TwinCAT.Ads.TypeSystem Namespace