protected SetStyleNumber ( int styleNumber ) : void | ||
styleNumber | int | |
return | void |
/** * 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.SetStyleNumber(this.styleMap.Count); tempStyle.HandleInheritance(); this.styleMap[tempStyle.GetStyleName()] = tempStyle; }
/// <summary> /// Register a RtfParagraphStyle with this RtfStylesheetList. /// </summary> /// <param name="rtfParagraphStyle">The RtfParagraphStyle to add.</param> public void RegisterParagraphStyle(RtfParagraphStyle rtfParagraphStyle) { RtfParagraphStyle tempStyle = new RtfParagraphStyle(Document, rtfParagraphStyle); tempStyle.HandleInheritance(); tempStyle.SetStyleNumber(_styleMap.Count); _styleMap[tempStyle.GetStyleName()] = tempStyle; }