Class PlaceholderExtensions

Version: 21.x

Extension methods for Placeholder.

Inheritance

System.Object

PlaceholderExtensions

Namespace: Sitecore.LayoutService.Client.Response.Model

Assembly: Sitecore.LayoutService.Client.Abstractions.dll

Syntax
public static class PlaceholderExtensions : Object

Methods

ChromeAt(Placeholder, Int32)

Returns the EditableChrome from the specified index in the placeholder feature collection.

Declaration
public static EditableChrome ChromeAt(this Placeholder placeholder, int index)
Parameters
TypeNameDescription
PlaceholderplaceholderThe placeholder feature collection.
System.Int32indexThe index of the chrome to be returned.
Returns
TypeDescription
EditableChromeAn EditableChrome.

ComponentAt(Placeholder, Int32)

Returns the Component from the specified index in the placeholder feature collection.

Declaration
public static Component ComponentAt(this Placeholder placeholder, int index)
Parameters
TypeNameDescription
PlaceholderplaceholderThe placeholder feature collection.
System.Int32indexThe index of the component to be returned.
Returns
TypeDescription
ComponentA Component.
If you have suggestions for improving this article, let us know!