70-543 Free Dumps Study Materials
Question 6: You are creating a custom template for Microsoft Office Word 2007 by using Visual Studio Tools
for the Microsoft Office System (VSTO).
The template contains a custom XML part that consumes data from an XML source. The XML source
contains the following XML fragment.
<Products> mother board, memory, hard drive,
floppy drive, DVD drive </Products>
You need to display the Products element as a comma-separated list within a paragraph of text.
Which code segment should you use?
A. Application.ActiveDocument.ContentControls.Add _
(WdContentControlType.wdContentControlRichText, range)
B. Application.ActiveDocument.ContentControls.Add _
(WdContentControlType.wdContentControlText, range)
C. Application.ActiveDocument.ContentControls.Add _
(WdContentControlType.wdContentControlDropdownList, range)
D. Application.ActiveDocument.ContentControls.Add _
(WdContentControlType.wdContentControlCombobox, range)
Correct Answer: B