AODL.Document.Content.Text.Indexes.TableOfContents.CreateIndexBody C# (CSharp) Method

CreateIndexBody() private method

Creates the index body node.
private CreateIndexBody ( ) : void
return void
		private void CreateIndexBody()
		{
			this._indexBodyNode		= ((TextDocument)this.Document).CreateNode("index-body", "text");
			
			//First not is always the index title
			XmlNode indexTitleNode	= ((TextDocument)this.Document).CreateNode("index-title", "text");
			
			//Create attributes for the index title
			XmlAttribute xa			= ((TextDocument)this.Document).CreateAttribute("style-name", "text");
			xa.Value				= this.StyleName;
			indexTitleNode.Attributes.Append(xa);
			
			xa						= ((TextDocument)this.Document).CreateAttribute("name", "text");
			xa.Value				= this.Title+"_Head";
			indexTitleNode.Attributes.Append(xa);

			this._indexBodyNode.AppendChild(indexTitleNode);
			this.Node.AppendChild(this._indexBodyNode);
		}