コード例 #1
0
ファイル: GDFBuilder.cs プロジェクト: rxantos/tesv-snip
 /// <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;
 }
コード例 #2
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;
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: randomgeekdom/StorySuite
        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);
        }