Ejemplo n.º 1
0
 public static void SetLocation(this HTMLElement c, Union <string, int, float> left, Union <string, int, float> top)
 {
     c.style.left = left.ToHtmlValue();
     c.style.top  = top.ToHtmlValue();
 }
Ejemplo n.º 2
0
 public Vector2(Union <string, int, float> x, Union <string, int, float> y)
 {
     X = x;
     Y = y;
 }
Ejemplo n.º 3
0
 public static void SetLocation(this Control c, Union <string, int, float> left, Union <string, int, float> top)
 {
     c.Element.SetLocation(left, top);
 }
Ejemplo n.º 4
0
 public static void SetSize(this HTMLElement c, Union <string, int, float> width, Union <string, int, float> height)
 {
     c.style.width  = width.ToHtmlValue();
     c.style.height = height.ToHtmlValue();
 }
Ejemplo n.º 5
0
 public static void SetBounds(this HTMLElement c, Union <string, int, float> left, Union <string, int, float> top, Union <string, int, float> width, Union <string, int, float> height)
 {
     c.style.left   = left.ToHtmlValue();
     c.style.top    = top.ToHtmlValue();
     c.style.width  = width.ToHtmlValue();
     c.style.height = height.ToHtmlValue();
 }
Ejemplo n.º 6
0
        public static Control SetSize(this Control c, Union <string, int, float> width, Union <string, int, float> height)
        {
            c.Element.SetSize(width, height);

            return(c);
        }
Ejemplo n.º 7
0
        public static Control SetBounds(this Control c, Union <string, int, float> left, Union <string, int, float> top, Union <string, int, float> width, Union <string, int, float> height)
        {
            c.Element.SetBounds(left, top, width, height);

            return(c);
        }