Link to home
Start Free TrialLog in
Avatar of gswitz
gswitz

asked on

How to get the original value from a ListBox control in the ContentControlListEntries in Word 2010

I have this simple loop


                                foreach (Word.ContentControlListEntry ddle in word_cc.DropdownListEntries)
                                {
                                    item.FROM_VALUE = ddle.Text;
                                    if (ddle.Value == item.TO_VALUE)
                                    {
                                        ddle.Select();
                                        break;
                                    }
                                }

I'm looking to retrieve the original value of the control before I alter it, so I can set it back as it was if I need to.

.Text return the default value.
.Value returns the value of each possible choice
I need to know the currently selected choice.

Thanks.

Previous questions on the same thread...
https://www.experts-exchange.com/questions/26641105/Office-Interop-Word-2010-FormFields-Iteration.html

https://www.experts-exchange.com/questions/26641446/I-need-to-change-the-value-of-a-List-Control-in-a-Word-Document-using-C.html


test2.docx
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial