We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Hidden structured document tag

Hi Can you help me figure out how can I see from aspose.words api if structured document tag is hidden.
In this file hidden.zip (14.1 KB)
there is dropdown in the middle text and its hidden.

@Saric

Please use StructuredDocumentTag.ContentsFont property to get font formatting of content control. The ContentsFont.Hidden returns true if text of content control is hidden. Please check the following code example. Hope this helps you.

Document doc = new Document(MyDir + @"hidden.docx");
StructuredDocumentTag sdt = (StructuredDocumentTag)doc.GetChild(NodeType.StructuredDocumentTag, 0, true);
Console.WriteLine(sdt.ContentsFont.Hidden);