/** * Register a RtfParagraphStyle with this RtfStylesheetList. * * @param rtfParagraphStyle The RtfParagraphStyle to add. */ public void RegisterParagraphStyle(RtfParagraphStyle rtfParagraphStyle) { RtfParagraphStyle tempStyle = new RtfParagraphStyle(this.document, rtfParagraphStyle); tempStyle.HandleInheritance(); tempStyle.SetStyleNumber(this.styleMap.Count); this.styleMap[tempStyle.GetStyleName()] = tempStyle; }