Skip to main content
This is a common method. Any platform-specific implementation limitations will be listed in the topics for the objects using this method.
This method initializes the properties of the current object with the values of similar properties of another object.

Syntax

C++

HRESULT CopyFrom( I<ObjectType>* From );

C#

void CopyFrom(I<ObjectType> From);

Visual Basic .NET

Sub CopyFrom(From As I<ObjectType>)

Parameters

From [in] This variable refers to the object of the same type as the current one. This object serves as a source of data to be copied into the new object.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The following objects provide this method:

Samples

FREngine.IEngine engine;
// Create a new TextLanguage object
LanguageDatabase languageDatabase = engine.CreateLanguageDatabase();
TextLanguage textLanguage = languageDatabase.CreateTextLanguage();
// Copy all attributes from the predefined English language
TextLanguage englishLanguage = engine.PredefinedLanguages.Find( "English" )
 .TextLanguage;
textLanguage.CopyFrom( englishLanguage );
The method is used in the following code samples for Linux and Windows: CustomLanguage.