AODL.Document.Content.Text.Indexes.TableOfContentsIndexTemplate.NewXmlNode C# (CSharp) Method

NewXmlNode() private method

Create the XmlNode which represent this object.
private NewXmlNode ( int outlineLevel, string styleName ) : void
outlineLevel int For which outline level this template should /// be used.
styleName string The name of the style which is referenced with /// this template
return void
		private void NewXmlNode(int outlineLevel, string styleName)
		{			
			this.Node						= this.TableOfContents.Document.CreateNode(
				"table-of-content-entry-template", "text");

			XmlAttribute xa					= this.TableOfContents.Document.CreateAttribute(
				"outline-level", "text");
			xa.Value						= outlineLevel.ToString();
			this.Node.Attributes.Append(xa);

			xa								= this.TableOfContents.Document.CreateAttribute(
				"style-name", "text");
			xa.Value						= styleName;
			this.Node.Attributes.Append(xa);
		}