Method DropDown
- Namespace
- DocWright.Word.Composition
- Assembly
- DocWright.Word.Composition.dll
DropDown(IBlockContainer, IReadOnlyList<string>, string?, DropDownFormFieldOptions?)
Places a drop-down form field.
public static void DropDown(this IBlockContainer container, IReadOnlyList<string> entries, string? label = null, DropDownFormFieldOptions? options = null)
Parameters
containerIBlockContainerThe container.
entriesIReadOnlyList<string>The entries, at most 25.
labelstringText before the list; null for none.
optionsDropDownFormFieldOptionsThe list's options; null for Word's defaults.
Exceptions
- ArgumentNullException
containerorentriesis null.