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 Image MULTIPLE FALSE FALSE

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