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 : Object

Methods

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
TypeNameDescription
Placeholderplaceholder

The placeholder feature collection.

System.Int32index

The index of the chrome to be returned.

Returns
TypeDescription
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
TypeNameDescription
Placeholderplaceholder

The placeholder feature collection.

System.Int32index

The index of the component to be returned.

Returns
TypeDescription
Component

A Component.

Do you have some feedback for us?

If you have suggestions for improving this article,