How get form field data?

I want get form field data. I can receive title of form group, but dont understand how get form text
foreach (StructuredDocumentTag sdt in doc.GetChildNodes(NodeType.StructuredDocumentTag, true))
{
var title = sdt.Title; ///Username
// how get username? Alex

}

image.png (1.6 KB)texa.zip (13.3 KB)

@mesteruh,

Please use the following code to get “Display Texts” and “Values” of all list items in “DropDownList” type “StructuredDocumentTag” (content controls) in Word document.

Document doc = new Document("E:\\temp\\texa\\texa.docx");

foreach (StructuredDocumentTag sdt in doc.GetChildNodes(NodeType.StructuredDocumentTag, true))
{
    if (sdt.SdtType == SdtType.DropDownList)
    {
        foreach(SdtListItem item in sdt.ListItems)
        {
            Console.WriteLine("DisplayText: " + item.DisplayText + " Value " + item.Value);
        }
    }
}