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
RequestResponse
public static class PlaceholderExtensions : ObjectMethods
ChromeAt(Placeholder, Int32)
Returns the EditableChrome from the specified index in the placeholder feature collection.
Declaration
RequestResponse
public static EditableChrome ChromeAt(this Placeholder placeholder, int index)Parameters
| Type | Name | Description |
|---|---|---|
| Placeholder | placeholder |
The placeholder feature collection. |
| System.Int32 | index |
The index of the chrome to be returned. |
Returns
| Type | Description |
|---|---|
| EditableChrome |
An EditableChrome. |
ComponentAt(Placeholder, Int32)
Returns the Component from the specified index in the placeholder feature collection.
Declaration
RequestResponse
public static Component ComponentAt(this Placeholder placeholder, int index)Parameters
| Type | Name | Description |
|---|---|---|
| Placeholder | placeholder |
The placeholder feature collection. |
| System.Int32 | index |
The index of the component to be returned. |