Get Associated Icon


Node Information
Gets associated icon to the specified file/directory.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Path IN String ONE FALSE FALSE
Icon OUT Icon MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.IO.FileInfo
{
    [IsNode("Get Associated Icon")]
    public class GetAssociatedIcon : Node
    {
        Port path = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Path");
        Port reslt = new Port(PortType.OUT, typeof(System.Drawing.Icon), AcceptsLinks.MULTIPLE, "Icon");
        public GetAssociatedIcon()
        {
            this.Name = "Get Associated Icon";
            AddPort(path);
            AddPort(reslt);
            Information = "Gets associated icon to the specified file/directory.";
        }
        public override void UpdateResults()
        {
            reslt.Instructions = "KIO.KFileInfo.GetIcon(" + GetValue(path) + ")";
        }
    }
}