public void SetOnBookmark(string bookmark, IOpenXmlElement element) { if (string.IsNullOrWhiteSpace(bookmark)) { throw new ArgumentNullException("bookmark must be not null or white spaces"); } if (wdDoc == null) { throw new InvalidOperationException("Document not loaded"); } var bookmarkElement = FindBookmark(bookmark); if (bookmarkElement != null) { bookmarkElement.InsertAfterSelf(element); } }
public T InsertBefore <T>(T newChild, IOpenXmlElement refChild) { throw new NotImplementedException(); }
public T InsertAfter <T>(T newChild, IOpenXmlElement refChild) where T : IOpenXmlElement { throw new NotImplementedException(); }