Exemple #1
0
        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));
                }
        }
Exemple #2
0
        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));
                }
        }
Exemple #3
0
 public void SetVisibilityTag(string tagName, bool visible)
 {
     docxDocument.SetTagVisibility(tagName, visible);
 }