示例#1
0
 protected virtual void InitializePage(Page newPage)
 {
     if (this._data != null)
     {
         newPage.Initialize(this._data);
         this._data = null;
     }
 }
示例#2
0
文件: Page.cs 项目: ikvm/webmatrix
 internal void Initialize(PageCreationData data)
 {
     ElementCollection elements = base.Elements;
     foreach (SectionElement element in data.Sections)
     {
         elements.Add(element);
     }
     this.ForeColor = data.ForeColor;
     this.BackColor = data.BackColor;
     this.LinkColor = data.LinkColor;
     this.HoverColor = data.HoverColor;
     this.FontFamily = data.FontFamily;
     this.FontSize = data.FontSize;
     this.Watermark = data.Watermark;
     this.Margins = data.Margins;
     this.AntiAliasedText = data.AntiAliasedText;
 }
示例#3
0
 protected void ClearInternal()
 {
     this._data = null;
 }
示例#4
0
 private void EnsurePageCreationData()
 {
     if (this._data == null)
     {
         this._data = new PageCreationData();
     }
 }