Open sandboxFocus

Method SetOptions

SetOptions<TOptions>(Func<TDeclaration, TTag, TOptions>)

Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.

Declaration
void SetOptions<TOptions>(Func<out TDeclaration, out TTag, TOptions> func) where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<out TDeclaration>, new()
Parameters
Type Name Description
Func<TDeclaration, TTag, TOptions> func

A function giving the options for the given declaration.

Type Parameters
Name Description
TOptions

The type of options.

Remarks

This method should only set the option properties that need to be changed. All unchanged properties must be let null.