MonthCalendar SetSelectionRange


Node Information
Sets the selected dates in a month calendar control to the specified date range.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Set IN RUN MULTIPLE FALSE FALSE
MonthCalendar IN MonthCalendar ONE FALSE FALSE
Start IN DateTime ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.MonthCalendar
{
    [IsNode("SetSelectionRange")]
    public class MonthCalendarSetSelectionRange : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Set");
        Port a = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "Start");
        Port b = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "End");
        Port objectRef = new Port(PortType.IN, typeof(Korduene.Designer.Standard.MonthCalendar), AcceptsLinks.ONE, "MonthCalendar");
        public MonthCalendarSetSelectionRange()
        {
            this.Name = "MonthCalendar SetSelectionRange";
            this.NodeType = NodeType.Method;
            AddPort(run);
            AddPort(objectRef);
            AddPort(a);
            Information = "Sets the selected dates in a month calendar control to the specified date range.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".SetSelectionRange(" + GetValue(a) + "," + GetValue(b) + ");";
        }
    }
}