Class PlaceholderExtensions
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
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
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. |
Returns
Type | Description |
---|---|
Component | A Component. |