Exemple #1
0
        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);
        }
Exemple #2
0
 public void CreateCommonStyles()
 {
     StyleCreator styleCreator = new StyleCreator(this._package);
     styleCreator.CreateBasicStyles();
 }