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

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

Creates the text style.
private CreateTextStyle ( XmlNode styleNode ) : void
styleNode System.Xml.XmlNode The style node.
Результат void
		private void CreateTextStyle(XmlNode styleNode)
		{
			TextStyle textStyle					= new TextStyle(this._document, styleNode.CloneNode(true));
			IPropertyCollection pCollection		= new IPropertyCollection();

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

			textStyle.Node.InnerXml				= "";

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

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