public void AddRange(PageLayout[] c)
		{
			base.AddRange (c);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Load settings from a xml document
		/// </summary>
		/// <param name="doc">Xml document</param>
		/// <param name="designMode">If on design mode</param>
		public override void LoadFromXml(XmlDocument doc, bool designMode)
		{
			// Remove older pages
			foreach (PageLayout page in pages)
				this.components.Remove(page);

			pages.Clear();
			
			// Imports printable items settings
			foreach (XmlElement element in doc["DocumentLayout"].GetElementsByTagName("PageLayout"))
			{
				PageLayout importedPage;

				importedPage = new PageLayout(this.components);
				importedPage.DesignMode = designMode;
				importedPage.LoadFromXml(element, typeDictionary);

				pages.Add(importedPage);
			}
		}