ElementQuery Property
Summary
Specifies the element-based query used to load Elements from the query context.
Syntax
Property Value
Empty query, which indicates wildcard matching.
Example
This example shows how to load and run analysis.
using Leadtools;
using Leadtools.Document.Analytics;
using Leadtools.Document;
using Leadtools.Document.Unstructured;
using Leadtools.Document.Data;
public void Sample()
{
using (var engines = UnstructuredOcrEngines.Defaults(@"D:\OcrLEADRuntime"))
{
var analyzer = new DocumentAnalyzer()
{
Reader = new UnstructuredDataReader()
{
OcrEngines = engines.Engines
},
QueryContext = new FileRepositoryContext(@"D:\ruleset.json")
};
var options = new DocumentAnalyzerRunOptions()
{
ElementQuery = new RepositoryQuery(),
ActionQuery = new RepositoryQuery()
};
using (var document = DocumentFactory.LoadFromFile(@"c:\test.docx", new LoadDocumentOptions()))
{
var results = analyzer.Run(document, options);
}
}
}