---
schema_version: "1"
id: 3dcb10073d3bcb833a13f02ae6af0b9c233728b22a35f923162dab04ee7bbd85
title: LayoutSection Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_LayoutSection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d20f39b5c1eb1fb18d8541bc878c2711badd288a7ff0a06f3ef238acc2799f7a
description: Represents a section of a page layout, such as the Custom Links section.Indicates if this section's label is custom or standard (built-in).Controls whether this heading appears on the detail page.Controls whether this heading appears on the edit page.The label; either standard or custom, based on the customLabel property.Lists the layout columns. You can have one, two, or three columns, ordered left to right, are possible.The style of the layout for this section.Makes a duplicate copy of the Metadata.LayoutSection.
---
# LayoutSection Class

Represents a section of a page layout, such as the Custom Links section.

## 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 “LayoutSection” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[LayoutSection Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_properties)**
- **[LayoutSection Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_methods)**

## LayoutSection Properties

The following are properties for LayoutSection.

- **[customLabel](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_customLabel)**  
    Indicates if this section's label is custom or standard (built-in).
- **[detailHeading](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_detailHeading)**  
    Controls whether this heading appears on the detail page.
- **[editHeading](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_editHeading)**  
    Controls whether this heading appears on the edit page.
- **[label](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_label)**  
    The label; either standard or custom, based on the customLabel property.
- **[layoutColumns](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_layoutColumns)**  
    Lists the layout columns. You can have one, two, or three columns, ordered left to right, are possible.
- **[style](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutSection.htm#apex_Metadata_LayoutSection_style)**  
    The style of the layout for this section.

### customLabel

Indicates if this section's label is custom or standard (built-in).

#### Signature

public Boolean customLabel {get; set;}

#### Property Value

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

### detailHeading

Controls whether this heading appears on the detail page.

#### Signature

public Boolean detailHeading {get; set;}

#### Property Value

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

### editHeading

Controls whether this heading appears on the edit page.

#### Signature

public Boolean editHeading {get; set;}

#### Property Value

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

### label

The label; either standard or custom, based on the customLabel property.

#### Signature

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

### layoutColumns

Lists the layout columns. You can have one, two, or three columns, ordered left to right, are possible.

#### Signature

public List<Metadata.LayoutColumn> layoutColumns {get; set;}

#### Property Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Metadata.LayoutColumn](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_LayoutColumn.htm#apex_class_Metadata_LayoutColumn "Represents the items in a column within a layout section.")\>

### style

The style of the layout for this section.

#### Signature

public Metadata.LayoutSectionStyle style {get; set;}

#### Property Value

Type: [Metadata.LayoutSectionStyle](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_LayoutSectionStyle.htm#apex_enum_Metadata_LayoutSectionStyle "Describes the possible styles for a layout section.")

## LayoutSection Methods

The following are methods for LayoutSection.

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

### clone()

Makes a duplicate copy of the Metadata.LayoutSection.

#### Signature

public Object clone()

#### Return Value

Type: Object