internal GDFRow(GDFBuilder builder, RTFRowDefinition rowDefinition, RTFCellDefinition[] cellDefinitions) { if (builder == null) { throw new ArgumentNullException("builder"); } if (cellDefinitions == null) { throw new ArgumentNullException("cellDefinitions"); } if (rowDefinition.RowWidth == 0) { throw new ArgumentNullException("rowDefinition.RowWidth"); } if (cellDefinitions.Length == 0) { throw new ArgumentNullException("cellDefinitions.Length"); } this._rowDefinition = rowDefinition; this._cellDefinitions = cellDefinitions; this.Builder = builder; this.Builder.Alignment(StringAlignment.Near); this._location = this.Builder.Manager.CurrentPage.Location; // New Line if needed if (this._location.X != this.Builder.Manager.CurrentPage.Bounds.X) { this.Builder.Manager.NewLine(); } this.Pages = new List <GDFPage>(); this.Pages.Add(this.Builder.Manager.CurrentPage); this._initrowBounds = new RectangleF(this.Pages[0].Location, new SizeF((this._rowDefinition.RowWidth / 100F) * this.Pages[0].Bounds.Width, this.Pages[0].Bounds.Height - this.Pages[0].Location.Y)); }
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); }
public UnWrapped(GDFBuilder builder) { this._builder = builder; this._builder._unwrapped = true; }
public UnWrapped(GDFBuilder builder) { _builder = builder; _builder._unwrapped = true; }