Skip to main content
This object represents a collection of predefined languages. Predefined languages are recognition languages supported by ABBYY FineReader Engine by default. The collection of predefined languages is created upon FineReader Engine initialization and exists until it is deinitialized. Besides standard collection functionality, this object exposes the Find method that allows you to get a PredefinedLanguage object by its internal name. The collection is accessible via the Engine object.
  • The indexing of ABBYY FineReader Engine collections starts with 0.
  • The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

Properties

NameTypeDescription
ApplicationEngine, read-onlyReturns the Engine object.
Countint, read-onlyStores the number of elements in the collection.
ElementPredefinedLanguage, read-onlyProvides access to a single element of the collection.

Methods

NameDescription
FindFinds a predefined language in the collection by the internal name of the language.
ItemProvides access to a single element of the collection.
PredefinedLanguages Object Diagram

Samples

FREngine.IEngine engine;
// Create new TextLanguage object as a copy of predefined English language
ILanguageDatabase languageDatabase = Engine.CreateLanguageDatabase();
ITextLanguage textLanguage = languageDatabase.CreateTextLanguage();
// Copy all attributes from predefined English language
ITextLanguage englishLanguage = Engine.PredefinedLanguages.Find( "English" )
 .TextLanguage;
textLanguage.CopyFrom( englishLanguage );
textLanguage.InternalName = "SampleTextLanguage";
The object is used in the following code samples:

See also

PredefinedLanguage Working with Languages Predefined Languages in ABBYY FineReader Engine Working with Collections Working with Properties