AODL.Document.TextDocuments.DocumentStyles.InsertParagraphStyle C# (CSharp) Метод

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

Inserts the paragraph style.
private InsertParagraphStyle ( Paragraph content, TextDocument document ) : void
content AODL.Document.Content.Text.Paragraph The content.
document TextDocument The document.
Результат void
		private void InsertParagraphStyle(Paragraph content, TextDocument document)
		{
			if (content.Style != null)
			{
				XmlNode node		= this.Styles.ImportNode(content.Style.Node, true);
				this.Styles.SelectSingleNode("//office:styles",
				                             document.NamespaceManager).AppendChild(node);
			}

			if (content.TextContent != null)
				foreach(IText it in content.TextContent)
				if (it is FormatedText)
			{
				XmlNode node		= this.Styles.ImportNode(it.Style.Node, true);
				this.Styles.SelectSingleNode("//office:styles",
				                             document.NamespaceManager).AppendChild(node);
			}
		}