Exemplo n.º 1
0
        public TextStyle addTextStyle(TextStyle oldStyle, string name, double scale = 1, bool italic = true, HorizontalTextAlignmentEnum hor      = HorizontalTextAlignmentEnum.kAlignTextCenter,
                                      VerticalTextAlignmentEnum vert = VerticalTextAlignmentEnum.kAlignTextMiddle, double size = 3.5, string font = "GOST Common", bool bold = true, bool underline = false)
        {
            TextStyle newStyle = (TextStyle)oldStyle.Copy(name);

            newStyle.Bold = bold; newStyle.Underline = underline;
            newStyle.Font = font; newStyle.FontSize = size / 10; newStyle.HorizontalJustification = hor;
            newStyle.VerticalJustification = vert; newStyle.Italic = italic; newStyle.WidthScale = scale;
            return(newStyle);
        }