/// <summary> /// Adds the line. /// </summary> /// <param name="x">The x.</param> /// <param name="y">The y.</param> public void AddLine(float x, float y) { // Adds a line to the pageElements Rectangle rectangle = new Rectangle(x, y + 15, 50, 100); Label captionLabel = new Label("Line Page Element:", x, y, 225, 10, Font.HelveticaBold, 10); _currentPage.Elements.Add(rectangle); _currentPage.Elements.Add(captionLabel); _currentPage.Elements.Add(new Line(x, y, x + 500, y, 1, RgbColor.Red)); }
public void Coffre_AddBulletLabel(string text, float x, float y, float width, float height) { Rectangle bullet = new Rectangle(x, y + 5, 3, 3, RgbColor.Black, RgbColor.Black); Label label = new Label(text, x + 15, y, width, height, Font.Helvetica, 11); _currentPage.Elements.Add(bullet); _currentPage.Elements.Add(label); }