Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

LayoutSection Class

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

Namespace

Metadata

Usage

Use this class when accessing Metadata.Layout metadata components. For more information, see “LayoutSection” in the Metadata API Developer Guide.

LayoutSection Properties

The following are properties for LayoutSection.

customLabel

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

Signature

public Boolean customLabel {get; set;}

Property Value

Type: Boolean

detailHeading

Controls whether this heading appears on the detail page.

Signature

public Boolean detailHeading {get; set;}

Property Value

Type: Boolean

editHeading

Controls whether this heading appears on the edit page.

Signature

public Boolean editHeading {get; set;}

Property Value

Type: Boolean

label

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

Signature

public String label {get; set;}

Property Value

Type: String

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<Metadata.LayoutColumn>

style

The style of the layout for this section.

Signature

public Metadata.LayoutSectionStyle style {get; set;}

Property Value

Type: Metadata.LayoutSectionStyle

LayoutSection Methods

The following are methods for LayoutSection.

clone()

Makes a duplicate copy of the Metadata.LayoutSection.

Signature

public Object clone()

Return Value

Type: Object