Exemple #1
0
        static Constants()
        {
            StyleBuilder sb = new StyleBuilder(null, null);

            selStyle = sb.Parse("pc=yellow, pw=2, spc=red, spds=dash");
            sb.CheckErrors();
            editLineStyle = sb.Parse("pc=yellow, pw=3, spc=red");
            sb.CheckErrors();
            editPointStyle = sb.Parse("pc=red");
            sb.CheckErrors();
            stringFormat           = new StringFormat();
            stringFormat.Alignment = stringAlignment; stringFormat.LineAlignment = stringAlignment;
            textStyle = new TextStyle(font, textBrush, stringFormat);
        }
Exemple #2
0
 public TextStyleBuilder(StyleBuilder sb) : base(sb, "")
 {
     sbBrush = new BrushStyleBuilder(sb, "tb");
 }
Exemple #3
0
 public BrushStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbImage = new ImageStyleBuilder(sb, prefix + "i");
 }
Exemple #4
0
 public BaseStyleBuilder(StyleBuilder sb, string prefix)
 {
     this.sb     = sb;
     this.prefix = prefix;
 }
Exemple #5
0
 public ExtStyleBuilder(StyleBuilder sb) : base(sb, "")
 {
 }
Exemple #6
0
 public ImageStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
 }
Exemple #7
0
 public PenStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbBrush = new BrushStyleBuilder(sb, prefix + "b");
 }