public GetBottom ( float margin ) : float | ||
margin | float | a margin |
return | float |
Rectangle rect = new Rectangle(50, 50, 100, 100); float bottom = rect.GetBottom(); Console.WriteLine("Bottom coordinate of rectangle: " + bottom);
Document document = new Document(); PdfWriter.GetInstance(document, new FileStream("rectangle.pdf", FileMode.Create)); document.Open(); Rectangle rect = new Rectangle(50, 50, 100, 100); rect.SetBottom(200); PdfContentByte canvas = writer.DirectContent; canvas.Rectangle(rect); document.Close();This code creates a PDF document and draws a rectangle with the bottom set to 200.
public GetBottom ( float margin ) : float | ||
margin | float | a margin |
return | float |