Back to Devexpress

InMemoryCodeCompletionContextStorage Class

xtrareports-devexpress-dot-xtrareports-dot-codecompletion-dot-storages-dc2c115c.md

latest3.8 KB
Original Source

InMemoryCodeCompletionContextStorage Class

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

Namespace : DevExpress.XtraReports.CodeCompletion.Storages

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

NuGet Package : DevExpress.Reporting.CodeCompletion

Declaration

csharp
public class InMemoryCodeCompletionContextStorage :
    ICodeCompletionContextStorage
vb
Public Class InMemoryCodeCompletionContextStorage
    Implements 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.

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

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

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

CodeCompletionRequestManager.UseLocalEngine(new InMemoryCodeCompletionContextStorage());
vb
Imports DevExpress.XtraReports.CodeCompletion
Imports 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.

Implements

ICodeCompletionContextStorage

Inheritance

Object InMemoryCodeCompletionContextStorage

See Also

InMemoryCodeCompletionContextStorage Members

DevExpress.XtraReports.CodeCompletion.Storages Namespace