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);
}