예제 #1
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();
 }
예제 #2
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();
 }
예제 #3
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();
 }