ListView Remove Item


Node Information
Removes item from the specified ListView.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Remove IN RUN MULTIPLE FALSE FALSE
ListView IN ListView ONE FALSE FALSE
Item IN Object ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.ListView
{
    [IsNode("Remove Item")]
    public class ListViewRemove : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Remove");
        Port item = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Item");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.ListView), AcceptsLinks.ONE, "ListView");
        public ListViewRemove()
        {
            this.Name = "ListView Remove Item";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(item);
            Information = "Removes item from the specified ListView.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Items.Remove(" + GetValue(item) + ");";
        }
    }
}