AODL.Document.Import.OpenDocument.NodeProcessors.LocalStyleProcessor.CreateParagraphStyle C# (CSharp) Метод

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

Creates the paragraph style.
private CreateParagraphStyle ( XmlNode styleNode ) : void
styleNode System.Xml.XmlNode The style node.
Результат void
		private void CreateParagraphStyle(XmlNode styleNode)
		{
			ParagraphStyle paragraphStyle			= new ParagraphStyle(this._document, styleNode);
			IPropertyCollection pCollection			= new IPropertyCollection();			

			if (styleNode.HasChildNodes)
			{
				foreach(XmlNode node in styleNode.ChildNodes)
				{
					IProperty property			= this.GetProperty(paragraphStyle, node.CloneNode(true));
					if (property != null)
						pCollection.Add(property);

				}
			}

			paragraphStyle.Node.InnerXml		= "";

			foreach(IProperty property in pCollection)
				paragraphStyle.PropertyCollection.Add(property);

			if (!this._common)
				this._document.Styles.Add(paragraphStyle);
			else
				this._document.CommonStyles.Add(paragraphStyle);
		}