protected virtual void InitializePage(Page newPage) { if (this._data != null) { newPage.Initialize(this._data); this._data = null; } }
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; }
protected void ClearInternal() { this._data = null; }
private void EnsurePageCreationData() { if (this._data == null) { this._data = new PageCreationData(); } }