LayoutSection Class

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

Metadata

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

The following are properties for LayoutSection.

  • customLabel

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

  • detailHeading

    Controls whether this heading appears on the detail page.

  • editHeading

    Controls whether this heading appears on 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.

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

public Boolean customLabel {get; set;}

Type: Boolean

Controls whether this heading appears on the detail page.

public Boolean detailHeading {get; set;}

Type: Boolean

Controls whether this heading appears on the edit page.

public Boolean editHeading {get; set;}

Type: Boolean

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

public String label {get; set;}

Type: String

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

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

Type: List<Metadata.LayoutColumn>

The style of the layout for this section.

public Metadata.LayoutSectionStyle style {get; set;}

Type: Metadata.LayoutSectionStyle

The following are methods for LayoutSection.

  • clone()

    Makes a duplicate copy of the Metadata.LayoutSection.

Makes a duplicate copy of the Metadata.LayoutSection.

public Object clone()

Type: Object