Method SetListItems
- Namespace
- DocWright.Dom.ContentControls
- Assembly
- DocWright.Dom.dll
SetListItems(IReadOnlyList<ContentControlListItem>)
Replaces the entries of a drop-down list or combo box.
public void SetListItems(IReadOnlyList<ContentControlListItem> items)
Parameters
itemsIReadOnlyList<ContentControlListItem>The replacement entries, in order.
Exceptions
- ArgumentNullException
itemsis null.- ContentControlEditException
The control is not a list control, or the preserved markup could not be rewritten.