[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TAbstractObjectReader.BeginComponent

Marks the reading of a new component.

## Declaration

`public procedure TAbstractObjectReader.BeginComponent(`
`var Flags: TFilerFlags;`
`var AChildPos: Integer;`
`var CompClassName: String;`
`var CompName: String`
`); virtual; abstract;`

## Description

This method is called when the streaming process wants to start reading a new component.

Descendent classes should override this method to read the start of a component new component definition and return the needed arguments. Flags should be filled with any flags that were found at the component definition, as well as AChildPos. The CompClassName should be filled with the class name of the streamed component, and the CompName argument should be filled with the name of the component.

## See also

TAbstractObjectReader.BeginRootComponent |  | Starts the reading of the root component.
TAbstractObjectReader.BeginProperty |  | Marks the reading of a property value.