Table of Contents

Method SetDropDownEntries

Namespace
DocWright.Word.Forms
Assembly
DocWright.Word.dll

SetDropDownEntries(IReadOnlyList<string>)

Replaces a drop-down's entries (at most 25), keeping the selection and default where they still name an entry.

public void SetDropDownEntries(IReadOnlyList<string> entries)

Parameters

entries IReadOnlyList<string>

The entries, in order, none empty.

Exceptions

ArgumentNullException

entries is null.

FormFieldEditException

The field is not a drop-down, an entry is refused, or the markup could not be rewritten.