Skip to main content
A newer version of this page is available. .

InMemoryCodeCompletionContextStorage Class

An in-memory storage for the local code completion engine.

Namespace: DevExpress.XtraReports.CodeCompletion.Storages

Assembly: DevExpress.XtraReports.v20.2.CodeCompletion.dll

NuGet Packages: DevExpress.Reporting.CodeCompletion, DevExpress.WindowsDesktop.Reporting.CodeCompletion

Declaration

public class InMemoryCodeCompletionContextStorage :
    ICodeCompletionContextStorage

Remarks

For End-User Report Designers, you can activate the local code completion engine that works without an Internet connection. Install the DevExpress.Reporting.CodeCompletion NuGet package and call the CodeCompletionRequestManager.UseLocalEngine method at the application startup.

This local engine requires a storage for report layouts.

You can use the predefined InMemoryCodeCompletionContextStorage class to store report layouts in memory. Call the UseLocalEngine() method without parameters at the application startup to register this storage automatically.

DevExpress.XtraReports.CodeCompletion.CodeCompletionRequestManager.UseLocalEngine();

Alternatively, you can directly pass this class instance to the UseLocalEngine(ICodeCompletionContextStorage) method overload.

using DevExpress.XtraReports.CodeCompletion;
using DevExpress.XtraReports.CodeCompletion.Storages;

CodeCompletionRequestManager.UseLocalEngine(new InMemoryCodeCompletionContextStorage());

You can also use a file storage (the FileCodeCompletionContextStorage class) or implement the ICodeCompletionContextStorage interface to provide your custom storage.

See the Scripts Overview topic for more information.

Inheritance

Object
InMemoryCodeCompletionContextStorage
See Also