Harness proD API Help
EPLAN.Harness.API.Settings.Common Namespace / UvPropertyTreeNameItem Class / AddSequenceOfProcessors Method
Processors in desired order.
Example
In This Topic
    AddSequenceOfProcessors Method
    In This Topic
    Add sequence of processors to the end of current list of processors.
    Syntax
    public void AddSequenceOfProcessors( 
       IList<ApiUvProcessor> processors
    )

    Parameters

    processors
    Processors in desired order.
    Remarks
    Each processor's input type must match with output type of previous processor (or the property if there is no processor). The last processor's output type must be string.
    Example
    This example shows how to add sequence of processors to a property.
    // Get desired property of a tree name item.
    UvPropertyTreeNameItem property = GetDesiredProperty();
    
    // Clear actual list of processors if required.
    // property.Processors.Clear();
    					
    IList<ApiUvProcessor> processors = new List<ApiUvProcessor>();
    {
    	// Output type of the property is string -> first processor's input type must be string.
    	new ApiUvStringToBoolProcessor(new[] { "Text1", "Text2" }, false),
    	
    	// Output type of the previous processor is bool -> processor's input type must be bool.
    	new ApiUvBoolToStringProcessor("N", "Y")
    	// This is the last processor -> its output type must be string.
    };
    					
    // Add the sequence of processors to the list of processors.
    property.AddSequenceOfProcessors(processors.ToArray());
    See Also