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