public void AddCustomStyle(FormatStyle customStyle) { if (customStyle == null) throw new ArgumentNullException("customStyle"); if (string.IsNullOrEmpty(customStyle.StyleId)) throw new ArgumentNullException("StyleId"); if (string.IsNullOrEmpty(customStyle.Name)) throw new ArgumentNullException("Name"); StyleCreator styleCreator = new StyleCreator(this._package); styleCreator.AddCustomStyle(customStyle); }
public void CreateCommonStyles() { StyleCreator styleCreator = new StyleCreator(this._package); styleCreator.CreateBasicStyles(); }