---
schema_version: "1"
id: 1cc3839f66cc57123fb930781e4415086657f53a3eee221a1d62ed0641589c22
title: ConsoleComponent Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_ConsoleComponent.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ff954ef11249cca6df5c4abe498f5d2d76a21dd48526291ef140cc2ddca6884
description: Represents a custom console component on a section of a page layout.The height of the custom console component in pixels.The location of the custom console component on the page layout. Valid values are right, left, top, and bottom.The unique name of the custom console component.The width of the custom console component in pixels.Makes a duplicate copy of the Metadata.ConsoleComponent.
---
# ConsoleComponent Class

Represents a custom console component on a section of a 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 “ConsoleComponent” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[ConsoleComponent Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_properties)**
- **[ConsoleComponent Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_methods)**

## ConsoleComponent Properties

The following are properties for ConsoleComponent.

- **[height](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_height)**  
    The height of the custom console component in pixels.
- **[location](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_location)**  
    The location of the custom console component on the page layout. Valid values are right, left, top, and bottom.
- **[visualforcePage](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_visualforcePage)**  
    The unique name of the custom console component.
- **[width](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_Metadata_ConsoleComponent_width)**  
    The width of the custom console component in pixels.

### height

The height of the custom console component in pixels.

#### 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.")

### location

The location of the custom console component on the page layout. Valid values are right, left, top, and bottom.

#### Signature

public String location {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.")

### visualforcePage

The unique name of the custom console component.

#### Signature

public String visualforcePage {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.")

### width

The width of the custom console component in pixels.

#### Signature

public Integer width {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.")

## ConsoleComponent Methods

The following are methods for ConsoleComponent.

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

### clone()

Makes a duplicate copy of the Metadata.ConsoleComponent.

#### Signature

public Object clone()

#### Return Value

Type: Object