XLL+ Class Library (7.0)

CXllFunctionFilterEventHandlerOptIn Class

An automatically registered event observer for XlRegisterFunctions, which applies a function filter using the opt-in policy.

class CXllFunctionFilterEventHandlerOptIn : public CXlRegisterFunctionsEventStaticObserver

Overview

This event observer should be declared at global scope as a static instance, as below:

CopyC++
CXllFunctionFilterEventHandlerOptIn theFunctionFilter;

During the XlRegisterFunctions event, the object's Update method will be called. As a result, an opt-in policy will be appied to the function filter (CXllFunctionFilter), using the following:

CopyC++
CXllFunctionFilter::Apply(*CXllApp::Instance(), true);

Requirements

Header: xlpfunctionfilter.h

See Also

CXllFunctionFilterEventHandlerOptIn Methods | xlpfunctionfilter.h | CXllFunctionFilter class | CXllFunctionFilterEventHandlerOptOut class | CXlRegisterFunctionsEvent | Publishing and suppressing add-in functions (User Guide)