AODL.Document.Styles.SectionStyle.NewXmlNode C# (CSharp) Method

NewXmlNode() private method

Create a new XmlNode.
private NewXmlNode ( string stylename ) : void
stylename string The stylename which should be referenced with this table of contents.
return void
		private void NewXmlNode(string stylename)
		{			
			this.Node		= this.Document.CreateNode("style", "style");

			XmlAttribute xa = this.Document.CreateAttribute("name", "style");
			xa.Value		= stylename;
			this.Node.Attributes.Append(xa);

			xa				= this.Document.CreateAttribute("family", "style");
			xa.Value		= "section";
			this.Node.Attributes.Append(xa);
		}