InkCanvas Save


Node Information
Saves content of the specified InkCanvas as a picture.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Save IN RUN MULTIPLE FALSE FALSE
InkCanvas IN InkCanvas ONE FALSE FALSE
Path IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.Advanced.InkCanvas
{
    [IsNode("Save")]
    public class InkCanvasSave : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE,  "Save");
        Port text = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Path");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Advanced.InkCanvas), AcceptsLinks.ONE, "InkCanvas");
        public string Text
        {
            set { text.Value = value.ToString(); }
            get { return GetRuntimeValue(text); }
        }
        public InkCanvasSave()
        {
            this.Name = "InkCanvas Save";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(text);
            Information = "Saves content of the specified InkCanvas as a picture.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Save(" + GetValue(text) + ");";
        }
    }
}