Table of Contents

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

container IBlockContainer

The container.

entries IReadOnlyList<string>

The entries, at most 25.

label string

Text before the list; null for none.

options DropDownFormFieldOptions

The list's options; null for Word's defaults.

Exceptions

ArgumentNullException

container or entries is null.