Click or drag to resize

Spice3CommandListAppendT(T) Method

Appends the contents of the specified list to the current list.

Namespace: RAYLASE.SPICE3
Assembly: RAYLASE.SPICE3 (in RAYLASE.SPICE3.dll) Version: 3.9.0
Syntax
C#
public void Append<T>(
	T list
)
where T : new(), Spice3CommandList

Parameters

list  T
The list whose contents should be appended.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:RAYLASE.SPICE3.Spice3CommandList.Append``1(``0)"]

Example
C#
using ( ClientAPI client = new ClientAPI() )
{
       client.Connect( cardIP );    // <--- insert your card's IP address here!
       client.System.ResetToDefaults();

       CommandList list = new CommandList();
       CommandList otherList = new CommandList();
       list.AppendJumpAbs(0,0);
       otherList.AppendMarkAbs(500,500);
       otherList.AppendJumpAbs(100,200);
       list.Append(otherList);
       client.List.Set(1,list);
       Console.WriteLine("There are {0} commands: {1}",
       client.List.GetListCaret(1),
       client.List.GetListContents(1) );
       // 
       // output should be:
       // There are 3 commands: JUMP_ABS 0 0; MARK_ABS 500 500; JUMP_ABS 100 200;
       // 

       // etc
}
See Also