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); }
public TextStyleBuilder(StyleBuilder sb) : base(sb, "") { sbBrush = new BrushStyleBuilder(sb, "tb"); }
public BrushStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix) { sbImage = new ImageStyleBuilder(sb, prefix + "i"); }
public BaseStyleBuilder(StyleBuilder sb, string prefix) { this.sb = sb; this.prefix = prefix; }
public ExtStyleBuilder(StyleBuilder sb) : base(sb, "") { }
public ImageStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix) { }
public PenStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix) { sbBrush = new BrushStyleBuilder(sb, prefix + "b"); }