AODL.Document.Content.Text.Indexes.TableOfContentsIndexTemplate.AddIndexEntryNode C# (CSharp) Метод

AddIndexEntryNode() приватный Метод

Add the index entry node, with given type
private AddIndexEntryNode ( string nodeName, IndexEntryTypes indexEntryType ) : void
nodeName string Name of the node.
indexEntryType IndexEntryTypes Type of the index entry.
Результат void
		private void AddIndexEntryNode(string nodeName, IndexEntryTypes indexEntryType)
		{
			XmlNode indexEntryNode			= this.TableOfContents.Document.CreateNode(
				nodeName, "text");

			if (indexEntryType == IndexEntryTypes.TabStop)
			{
				XmlAttribute xa				= this.TableOfContents.Document.CreateAttribute(
					"type", "style");
				//Fixed to be right align
				xa.Value					= "right";
				indexEntryNode.Attributes.Append(xa);

				xa							= this.TableOfContents.Document.CreateAttribute(
					"leader-char", "style");
				//Fixed usage of .
				xa.Value					= ".";
				indexEntryNode.Attributes.Append(xa);
			}

			this.Node.AppendChild(indexEntryNode);
		}
	}