Screen Resolution


Node Information
Gets the primary screen's resolution.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Width OUT Int32 MULTIPLE FALSE FALSE
Height OUT Int32 MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Information
{
    [IsNode("Screen Resolution")]
    public class GetScreenResolution : Node
    {
        Port width = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "Width");
        Port height = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "Height");
        public GetScreenResolution()
        {
            this.Name = "Screen Resolution";
            AddPort(width);
            AddPort(height);
            width.Instructions = "System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width";
            height.Instructions = "System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height";
            Information = "Gets the primary screen's resolution.";
        }
    }
}