---
schema_version: "1"
id: 941a70c0ae13cb00abb32b78ef7ebb124906a64c5a79859db5df3975cc0e621b
title: DescribeLayoutSection Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_quickaction_describelayoutsection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 55c2270c70fc36391de4cc4be4fe375fe29fa3c1dbffd9ee86d8c42b02022b10
description: "Represents a section of a layout and consists of one or more columns and one or more rows (an array of QuickAction.DescribeLayoutRow).The current view of the record details section: collapsed (true) or expanded (false).The unique ID of the record details section in the layout.Returns the number of columns in the QuickAction.DescribeLayoutSection.The heading text (label) for the QuickAction.DescribeLayoutSection.Returns an array of one or more QuickAction.DescribeLayoutRow objects.Returns the ID of the record details section in the layout.Returns the ID of the layout upon which this DescribeLayoutSection resides.Returns the number of rows in the QuickAction.DescribeLayoutSection.Indicates whether the record details section is collapsed (true) or expanded (false). If you build your own app, you can use this method to see whether the current user collapsed a section, and respect that preference in your own UI.Indicates whether the QuickAction.DescribeLayoutSection is a collapsible section (true) or not (false).Indicates whether to use the heading (true) or not (false)."
---
# DescribeLayoutSection Class

Represents a section of a layout and consists of one or more columns and one or more rows (an array of QuickAction.DescribeLayoutRow).

## Namespace

[QuickAction](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_QuickAction.htm "The QuickAction namespace provides classes and methods for quick actions.")

## DescribeLayoutSection Properties

The following are properties for DescribeLayoutSection.

### collapsed

The current view of the record details section: collapsed (true) or expanded (false).

#### Signature

public Boolean collapsed {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.")

### layoutsectionid

The unique ID of the record details section in the layout.

#### Signature

public Id layoutsectionid {get; set;}

#### Property Value

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

## DescribeLayoutSection Methods

The following are methods for DescribeLayoutSection.

- **[getColumns()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getColumns)**  
    Returns the number of columns in the QuickAction.DescribeLayoutSection.
- **[getHeading()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getHeading)**  
    The heading text (label) for the QuickAction.DescribeLayoutSection.
- **[getLayoutRows()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getLayoutRows)**  
    Returns an array of one or more QuickAction.DescribeLayoutRow objects.
- **[getLayoutSectionId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getLayoutSectionId)**  
    Returns the ID of the record details section in the layout.
- **[getParentLayoutId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getParentLayoutId)**  
    Returns the ID of the layout upon which this DescribeLayoutSection resides.
- **[getRows()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_getRows)**  
    Returns the number of rows in the QuickAction.DescribeLayoutSection.
- **[isCollapsed()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_isCollapsed)**  
    Indicates whether the record details section is collapsed (true) or expanded (false). If you build your own app, you can use this method to see whether the current user collapsed a section, and respect that preference in your own UI.
- **[isUseCollapsibleSection()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_isUseCollapsibleSection)**  
    Indicates whether the QuickAction.DescribeLayoutSection is a collapsible section (true) or not (false).
- **[isUseHeading()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutsection.htm#apex_QuickAction_DescribeLayoutSection_isUseHeading)**  
    Indicates whether to use the heading (true) or not (false).

### getColumns()

Returns the number of columns in the QuickAction.DescribeLayoutSection.

#### Signature

public Integer getColumns()

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

### getHeading()

The heading text (label) for the QuickAction.DescribeLayoutSection.

#### Signature

public String getHeading()

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

### getLayoutRows()

Returns an array of one or more QuickAction.DescribeLayoutRow objects.

#### Signature

public List<QuickAction.DescribeLayoutRow> getLayoutRows()

#### Return 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.")<[QuickAction.DescribeLayoutRow](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutrow.htm#apex_class_quickaction_describelayoutrow "Represents a row in a QuickAction.DescribeLayoutSection.")\>

### getLayoutSectionId()

Returns the ID of the record details section in the layout.

#### Signature

public Id getLayoutSectionId()

#### Return Value

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

### getParentLayoutId()

Returns the ID of the layout upon which this DescribeLayoutSection resides.

#### Signature

public Id getParentLayoutId()

#### Return Value

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

### getRows()

Returns the number of rows in the QuickAction.DescribeLayoutSection.

#### Signature

public Integer getRows()

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

### isCollapsed()

Indicates whether the record details section is collapsed (true) or expanded (false). If you build your own app, you can use this method to see whether the current user collapsed a section, and respect that preference in your own UI.

#### Signature

public Boolean isCollapsed()

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

### isUseCollapsibleSection()

Indicates whether the QuickAction.DescribeLayoutSection is a collapsible section (true) or not (false).

#### Signature

public Boolean isUseCollapsibleSection()

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

### isUseHeading()

Indicates whether to use the heading (true) or not (false).

#### Signature

public Boolean isUseHeading()

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