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.ContentControlListEn try ddle in word_cc.DropdownListEntrie s)
{
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
foreach (Word.ContentControlListEn
{
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.