> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CopyFrom Method

> CopyFrom method in the ABBYY FineReader Engine API — common method that initializes the properties of the current object with the values of a similar object.

> [!NOTE]
>
> 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++

```cpp theme={null}
HRESULT CopyFrom( I<ObjectType>* From );
```

### C\#

```csharp theme={null}
void CopyFrom(I<ObjectType> From);
```

### Visual Basic .NET

```vb theme={null}
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](https://docs.abbyy.com/fine-reader/engine/api-reference/return-codes.md).

## Remarks

The following objects provide this method:

* Image-related objects:
  * [ImageProcessingParams](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/imageprocessingparams.md)
  * [PrepareImageMode](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/prepareimagemode.md)
  * [ImageModification](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/imagemodification.md)
  * [JpegExtendedParams](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/jpegextendedparams.md)
  * [TiffExtendedParams](https://docs.abbyy.com/fine-reader/engine/api-reference/image-related-objects/tiffextendedparams.md)

* Layout and blocks:
  * [Layout](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/layout.md)
  * [BarcodeBlock](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/barcodeblock.md)
  * [CheckmarkBlock](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/checkmarkblock.md)
  * [SeparatorBlock](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/separatorblock.md)
  * [TextBlock](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/textblock.md)
  * [RasterPictureBlock](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/rasterpictureblock.md)
  * [BarcodeSymbol](https://docs.abbyy.com/fine-reader/engine/api-reference/text-related-objects/barcodesymbol.md)
  * [CheckmarkTrainingData](https://docs.abbyy.com/fine-reader/engine/api-reference/layout-related-objects/checkmarktrainingdata.md)

* Language-related objects:
  * [TextLanguage](https://docs.abbyy.com/fine-reader/engine/api-reference/language-related-objects/textlanguage.md)
  * [BaseLanguage](https://docs.abbyy.com/fine-reader/engine/api-reference/language-related-objects/baselanguage.md)

* Text-related objects:
  * [ParagraphParams](https://docs.abbyy.com/fine-reader/engine/api-reference/text-related-objects/paragraphparams.md)
  * [CharParams](https://docs.abbyy.com/fine-reader/engine/api-reference/text-related-objects/charparams.md)
  * [TextOrientation](https://docs.abbyy.com/fine-reader/engine/api-reference/text-related-objects/textorientation.md)

* Document-related objects:
  * [AuthorInfo](https://docs.abbyy.com/fine-reader/engine/api-reference/document-related-objects/authorinfo.md)

* Supplementary objects:
  * [Region](https://docs.abbyy.com/fine-reader/engine/api-reference/supplementary-objects-and-methods/region.md)
  * [FRRectangle](https://docs.abbyy.com/fine-reader/engine/api-reference/supplementary-objects-and-methods/frrectangle.md)
  * [IntsCollection](https://docs.abbyy.com/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection.md)
  * [StringsCollection](https://docs.abbyy.com/fine-reader/engine/api-reference/supplementary-objects-and-methods/stringscollection.md)
  * [Point](https://docs.abbyy.com/fine-reader/engine/api-reference/supplementary-objects-and-methods/point.md)

* Processing parameters:
  * [PageProcessingParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pageprocessingparams.md)
  * [PagePreprocessingParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams.md)
  * [PageAnalysisParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pageanalysisparams.md)
  * [TableAnalysisParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/tableanalysisparams.md)
  * [BarcodeParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/barcodeparams.md)
  * [ObjectsExtractionParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/objectsextractionparams.md)
  * [SortingBlocksParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/sortingblocksparams.md)
  * [RecognizerParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams.md)
  * [SynthesisParamsForPage](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsforpage.md)
  * [SynthesisParamsForDocument](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsfordocument.md)
  * [DocumentStructureDetectionParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/documentstructuredetectionparams.md)
  * [FontFormattingDetectionParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/fontformattingdetectionparams.md)
  * [DocumentProcessingParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/documentprocessingparams.md)
  * [EmptyPageDetectionParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/emptypagedetectionparams.md)

* Export parameters:
  * [HTMLExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/htmlexportparams.md)
  * [PPTExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pptexportparams.md)
  * [RTFExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/rtfexportparams.md)
  * [TextExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams.md)
  * [XLExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/xlexportparams.md)
  * [XMLExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/xmlexportparams.md)
  * [AltoExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/altoexportparams.md)
  * [JsonExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/jsonexportparams.md)
  * [DocLangExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/doclangexportparams.md)
  * [PDFExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams.md)
  * [XPSExportParams](https://docs.abbyy.com/fine-reader/engine/api-reference/parameter-objects/export-parameters/xpsexportparams.md)

* Visual Components supplementary objects:
  * [SpellWord](https://docs.abbyy.com/fine-reader/engine/visual-components-reference/supplementary-objects/spellword.md)
  * [SpellWordCollection](https://docs.abbyy.com/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection.md)
  * [SpellReplacement](https://docs.abbyy.com/fine-reader/engine/visual-components-reference/supplementary-objects/spellreplacement.md)
  * [SpellReplacementCollection](https://docs.abbyy.com/fine-reader/engine/visual-components-reference/supplementary-objects/spellreplacementcollection.md)

## Samples

> [accordion] C# code
>
> ```csharp theme={null}
> 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](https://docs.abbyy.com/fine-reader/engine/guided-tour/samples.md#customlanguage).
