コード例 #1
0
 /// <summary>
 /// Moves a page after another
 /// </summary>
 public void InsertAfter(HtmlPdfPage page, HtmlPdfPage after)
 {
     this._Pages.Remove(page);
     this._Pages.Insert(
         Math.Min(this._Pages.IndexOf(after) + 1, this._Pages.Count),
         page);
 }
コード例 #2
0
 /// <summary>
 /// Moves a page before another
 /// </summary>
 public void InsertBefore(HtmlPdfPage page, HtmlPdfPage before)
 {
     this._Pages.Remove(page);
     this._Pages.Insert(
         Math.Max(this._Pages.IndexOf(before), 0),
         page);
 }
コード例 #3
0
        /// <summary>
        /// Appends and returns a new page for this document http://aspnettutorialonline.blogspot.com/
        /// </summary>
        public HtmlPdfPage AddPage()
        {
            HtmlPdfPage page = new HtmlPdfPage();

            this._Pages.Add(page);
            return(page);
        }
コード例 #4
0
 /// <summary>
 /// Removes the page from the document http://aspnettutorialonline.blogspot.com/
 /// </summary>
 public void RemovePage(HtmlPdfPage page)
 {
     this._Pages.Remove(page);
 }