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).
  • detailHeading
    Controls if this section appears in the detail page.
  • editHeading
    Controls if this section appears in the edit page.
  • label
    The label; either standard or custom, based on the customLabel property.
  • layoutColumns
    Lists the layout columns. You can have one, two, or three columns, ordered left to right, are possible.
  • 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

detailHeading

Controls if this section appears in the detail page.

Signature

public Boolean detailHeading {get; set;}

Property Value

Type: Boolean

editHeading

Controls if this section appears in 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.

clone()

Makes a duplicate copy of the Metadata.LayoutSection.

Signature

public Object clone()

Return Value

Type: Object