AODL.Document.Styles.MasterStyles.TextPageHeaderFooterBase.New C# (CSharp) Method

New() protected method

Create a new TextPageFooter object. !!NOTICE: The TextPageLayout of the TextMasterPage object must exist!
The TextPageLayout of the TextMasterPage object must exist!
protected New ( TextMasterPage textMasterPage, string typeName ) : void
textMasterPage TextMasterPage The text master page.
typeName string Name of the type to create header or footer.
return void
		protected void New(TextMasterPage textMasterPage, string typeName)
		{
			try
			{
				this._textMasterPage = textMasterPage;
				this._textDocument = textMasterPage.TextDocument;
				this._styleNode = this.TextDocument.CreateNode(
					"footer-style", "style");
				this._textMasterPage.TextPageLayout.StyleNode.AppendChild(this._styleNode);
			}
			catch(Exception)
			{
				throw;
			}
		}