public Thickness(StyleUnit t, StyleUnit r, StyleUnit b, StyleUnit l) { Top = t; Right = r; Bottom = b; Left = l; }
public Thickness(StyleUnit thickness) { Top = thickness; Right = thickness; Bottom = thickness; Left = thickness; }
public Thickness(StyleUnit horizontal, StyleUnit vertical) { Top = vertical; Right = horizontal; Bottom = vertical; Left = horizontal; }
public Thickness(string t, string r, string b, string l) { Top = StyleUnit.Parse(t); Right = StyleUnit.Parse(r); Bottom = StyleUnit.Parse(b); Left = StyleUnit.Parse(l); }
public Thickness(string horizontal, string vertical) { Top = StyleUnit.Parse(vertical); Right = StyleUnit.Parse(horizontal); Bottom = StyleUnit.Parse(vertical); Left = StyleUnit.Parse(horizontal); }
public Thickness(string thickness) { Top = StyleUnit.Parse(thickness); Right = StyleUnit.Parse(thickness); Bottom = StyleUnit.Parse(thickness); Left = StyleUnit.Parse(thickness); }
public Thickness() { Top = 0; Right = 0; Bottom = 0; Left = 0; }
private string Convert(StyleUnit value) { switch (value.Unit) { case Unit.Pixel: return(value.Value + "px"); case Unit.Percent: return(value.Value + "%"); default: throw new NotImplementedException(); } }
public double ConvertFontsize(StyleUnit size) { double result = 0; switch (size.Unit) { case Unit.Pixel: result = size.Value; break; case Unit.Percent: result = size.Value * Height / 100.0; break; default: throw new NotImplementedException(); } return(result); }