public byte[] ToArray() { if (tagVisibilityOptions != null) docxDocument.SetTagVisibility(tagVisibilityOptions); return docxDocument.ToArray(); }