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

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

Creates the paragraph properties.
private CreateParagraphProperties ( IStyle style, XmlNode propertyNode ) : ParagraphProperties
style IStyle The style.
propertyNode System.Xml.XmlNode The property node.
Результат AODL.Document.Styles.Properties.ParagraphProperties
		private ParagraphProperties CreateParagraphProperties(IStyle style, XmlNode propertyNode)
		{
			ParagraphProperties paragraphProperties	= new ParagraphProperties(style);
			paragraphProperties.Node				= propertyNode;
			TabStopStyleCollection tabCollection	= new TabStopStyleCollection(this._document);

			if (propertyNode.HasChildNodes)
				foreach(XmlNode node in propertyNode.ChildNodes)
					if (node.Name == "style:tab-stops")
						foreach(XmlNode nodeTab in node.ChildNodes)
							if (nodeTab.Name == "style:tab-stop")
								tabCollection.Add(this.CreateTabStopStyle(nodeTab));

			if (tabCollection.Count > 0)
				paragraphProperties.TabStopStyleCollection = tabCollection;

			return paragraphProperties;
		}