public void Render( drawing::Graphics context, drawing::SizeF size ) { ContentScanner scanner = new ContentScanner(Contents); scanner.Render(context, size); }
/** * <summary>Gets the document size, that is the maximum page dimensions across the whole document. * </summary> * <seealso cref="PageSize"/> */ public drawing::SizeF GetSize( ) { float height = 0, width = 0; foreach (Page page in Pages) { drawing::SizeF pageSize = page.Size; height = Math.Max(height, pageSize.Height); width = Math.Max(width, pageSize.Width); } return(new drawing::SizeF(width, height)); }
/** * <summary>Creates a new form within the specified document context.</summary> * <param name="context">Document where to place this form.</param> * <param name="size">Form size.</param> */ public FormXObject( Document context, drawing::SizeF size ) : this(context, new drawing::RectangleF(new drawing::PointF(0, 0), size)) { }