/// <summary> /// Allows for the removal of a specific chapter configuration /// </summary> /// <param name="chapter"></param> public void Remove(ChapterConfigurationElement chapter) { if (chapter == null) { throw new ArgumentNullException(nameof(chapter)); } if (BaseIndexOf(chapter) >= 0) { BaseRemove(chapter.Number); } }
/// <summary> /// returns the index of the given element /// </summary> /// <param name="chapter">the chapter to find</param> /// <returns></returns> public int IndexOf(ChapterConfigurationElement chapter) => BaseIndexOf(chapter);
/// <summary> /// Adds a new chapter to configuration /// </summary> /// <param name="chapter">the chapter info to add</param> public void Add(ChapterConfigurationElement chapter) { BaseAdd(chapter); }