Retrieve radiobutton state and it's label
I have a label and radio button control inside Microsoft word.a) I'm trying to read the radio button value using C#. It is not retrieving.
b) Also I need to retrieve the label next to radio button(corresponding).
Suggest me some idea
Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
Document doc = new Document();
doc = app.Documents.Open(@"C:\User\Desktop\a.docx");
Bookmarks chk = doc.Bookmarks;
Selection s = app.Selection;
Range r = s.Range;
Bookmark b = chk.Add("MyBookMark", r);
foreach(InlineShape ck in r.InlineShapes)
{
if(ck.Type==WdInlineShapeType.wdInlineShapeOLEControlObject)
{
if(ck.OLEFormat.ClassType == "Forms.CheckBox*")
{
}
}
}