Ejemplo n.º 1
0
 public static Boolean TryParse(String[] parts, out Border borderOutput)
 {
     Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
     int border;
     borderOutput = new Border();
     double shadow, outline;
     if (!int.TryParse(parts[0], out border) || !double.TryParse(parts[1], out outline) ||
         !double.TryParse(parts[2], out shadow))
         return false;
     borderOutput = new Border(outline, shadow, border == 1);
     return true;
 }
Ejemplo n.º 2
0
        public Style(String name, String fontName, Int32 fontSize, Colors fontColors, Border fontBorder, Vector2 scale,
			Typography fontTypography, Align alignment, Double spacing, Double angle, Margin fontMargin,
			Int32 encoding = 1)
        {
            Name = name;
            FontName = fontName;
            FontSize = fontSize;
            FontColors = fontColors;
            FontBorder = fontBorder;
            Scale = scale;
            FontTypography = fontTypography;
            Alignment = alignment;
            Spacing = spacing;
            Angle = angle;
            FontMargin = fontMargin;
            Encoding = encoding;
        }
Ejemplo n.º 3
0
 public Style()
 {
     Name = "Default";
     FontName = "Arial";
     FontSize = 20;
     FontColors = new Colors(new SColor(255, 255, 255), new SColor(0, 0, 255), new SColor(0, 0, 0, 0),
         new SColor(0, 0, 0, 0));
     FontTypography = new Typography();
     Scale = new Vector2(100, 100);
     Spacing = 0;
     Angle = 0;
     FontBorder = new Border();
     Alignment = Align.LowerCenter;
     FontMargin = new Margin();
     Encoding = 1;
 }