public void NotVisibilityContentIfDocumentWithContentTypeTag() { using (var initialDocument = new DocxDocument(Resources.DocumentWithContentTypeTag)) using (var expectedDocument = new DocxDocument(Resources.DocumentWithContentTypeTag)) { initialDocument.SetTagVisibility("Tag", true); Assert.IsTrue(new DocxDocumentEqualityComparer().Equals(expectedDocument, initialDocument)); } }
public void HidePlaceholderIfHideContentInTag() { using (var initialDocument = new DocxDocument(Resources.DocumentWithHideContentInPlaceholderInTag)) using (var expectedDocument = new DocxDocument(Resources.DocumentWithVisibilityContentInPlaceholderInTag)) { initialDocument.SetTagVisibility("Tag", true); Assert.IsTrue(new DocxDocumentEqualityComparer().Equals(expectedDocument, initialDocument)); } }
public void SetVisibilityTag(string tagName, bool visible) { docxDocument.SetTagVisibility(tagName, visible); }