如何使用C#从word文档中提取单选按钮值?
问题描述:
您好我正在c#项目中工作我必须阅读包含单选按钮和复选框的单词文档,我想识别所选单选按钮的值,而不是使用c#选择的单选按钮的值。谢谢
我尝试过:
需要帮助
Hi i am working in a c# project i have to read word document which contains radio buttons and check box, i want to identify the value of the radio button which is selected and which is not selected using c#. Thanks
What I have tried:
Need Help
答
您需要做的就是遍历 InlineShapes [ ^ ]。与此处描述的相同: c# - 需要帮助提取选项按钮值来自word文档 - Stack Overflow [ ^ ]或此处: MS Word选项按钮集合 [ ^ ]
All you need to do is to loop through the collection of InlineShapes[^] in the word document. As same as is described here: c# - Need help extracting optionbutton values from a word document - Stack Overflow[^] or here: MS Word Option Button Collection[^]