XLL+ Class Library (7.0)

CXllFunctionFilterEventHandlerOptOut Class

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

class CXllFunctionFilterEventHandlerOptOut : public CXlRegisterFunctionsEventStaticObserver

Overview

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

CopyC++
CXllFunctionFilterEventHandlerOptOut 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(), false);

Requirements

Header: xlpfunctionfilter.h

See Also

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