コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XForm"/> class that represents a page of a PDF document.
 /// </summary>
 /// <param name="document">The PDF document.</param>
 /// <param name="width">The width of the page.</param>
 /// <param name="height">The height of the page</param>
 public XForm(PdfDocument document, XUnit width, XUnit height)
     : this(document, new XRect(0, 0, width, height))
 {
 }
コード例 #2
0
        /// <summary>
        /// This member is intended to be used by XmlDomainObjectReader only.
        /// </summary>
        public static XUnit Parse(string value)
        {
            XUnit unit = value;

            return(unit);
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the XForm class such that it can be drawn on the specified graphics
 /// object.
 /// </summary>
 /// <param name="gfx">The graphics object that later is used to draw this form.</param>
 /// <param name="width">The width of the form.</param>
 /// <param name="height">The height of the form.</param>
 public XForm(XGraphics gfx, XUnit width, XUnit height)
     : this(gfx, new XSize(width, height))
 {
 }