---
schema_version: "1"
id: ac25b697196f33f218e873d59d50392397ab4c2d49f26a527a3368ab60ba7782
title: FeedLayoutComponent Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_FeedLayoutComponent.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e74bde4ebe2484a9ce2ed18a3d565233f90cffbc04359694dae9cc10bd067601
description: Represents a component in the feed view of a feed-based page layout.Represents a component in the feed view of a feed-based page layout. The type of component is required.The height, in pixels, of the component. Doesn’t apply to standardComponentsThe name of the Visualforce page used as a custom component.Makes a duplicate copy of the Metadata.FeedLayoutComponent.
---
# FeedLayoutComponent Class

Represents a component in the feed view of a feed-based page layout.

## Namespace

[Metadata](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “FeedLayoutComponent” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[FeedLayoutComponent Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_properties)**
- **[FeedLayoutComponent Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_methods)**

## FeedLayoutComponent Properties

The following are properties for FeedLayoutComponent.

See FeedLayoutComponent in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm)

- **[componentType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_componentType)**  
    Represents a component in the feed view of a feed-based page layout. The type of component is required.
- **[height](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_height)**  
    The height, in pixels, of the component. Doesn’t apply to standardComponents
- **[page\_x](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_page_x)**  
    The name of the Visualforce page used as a custom component.

### componentType

Represents a component in the feed view of a feed-based page layout. The type of component is required.

#### Signature

public Metadata.FeedLayoutComponentType componentType {get; set;}

#### Property Value

Type: [Metadata.FeedLayoutComponentType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_FeedLayoutComponentType.htm#apex_enum_Metadata_FeedLayoutComponentType "Indicates the type of feed layout component.")

### height

The height, in pixels, of the component. Doesn’t apply to standardComponents

#### Signature

public Integer height {get; set;}

#### Property Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### page\_x

The name of the Visualforce page used as a custom component.

#### Signature

public String page\_x {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

## FeedLayoutComponent Methods

The following are methods for FeedLayoutComponent.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_Metadata_FeedLayoutComponent_clone)**  
    Makes a duplicate copy of the Metadata.FeedLayoutComponent.

### clone()

Makes a duplicate copy of the Metadata.FeedLayoutComponent.

#### Signature

public Object clone()

#### Return Value

Type: Object