Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GDFBuilder"/> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public GDFBuilder(GDFPageManager manager) : base(RTFFont.Arial, 20F)
 {
     this.Manager = manager;
     _sf.FormatFlags |= StringFormatFlags.LineLimit;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GDFBuilder"/> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public GDFBuilder(GDFPageManager manager) : base(RTFFont.Arial, 20F)
 {
     this.Manager     = manager;
     _sf.FormatFlags |= StringFormatFlags.LineLimit;
 }
Esempio n. 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            Size s = gdfDisplayBox1.ClientSize;
            s.Height -= 31;

            GDFPageManager manager = new GDFPageManager(s, SystemColors.Window);

            GDFBuilder sb = new GDFBuilder(manager);
            BuilderCode(sb);
            gdfDisplayBox1.SetPages(manager.Pages);
        }