Example #1
0
 public XPSPageSheetModel(XPSDocumentPageWrapper pageWrapper, Guid id, SheetDisposition disposition, Rectangle bounds, int height)
     : base(id, disposition, bounds, false, height)
 {
     this.m_DocumentPage        = null;
     this.m_DocumentPageWrapper = pageWrapper;
     this.m_Width = bounds.Width;
 }
Example #2
0
 public XPSPageSheetMessage(XPSPageSheetModel sheet, SheetCollection collection)
     : base(sheet, collection)
 {
     if (sheet.DocumentPageWrapper != null)
     {
         using (Synchronizer.Lock(sheet.SyncRoot))
         {
             this.m_DocumentPageWrapper = sheet.DocumentPageWrapper;
             this.Height = sheet.Height;
             this.Width  = sheet.Width;
         }
     }
 }