Table of Contents

Class PlaceholderExtensions

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Response.Model
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Extension methods for Placeholder.

public static class PlaceholderExtensions
Inheritance
PlaceholderExtensions
Inherited Members

Methods

ChromeAt(Placeholder, int)

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

public static EditableChrome? ChromeAt(this Placeholder placeholder, int index)

Parameters

placeholder Placeholder

The placeholder feature collection.

index int

The index of the chrome to be returned.

Returns

EditableChrome

An EditableChrome.

ComponentAt(Placeholder, int)

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

public static Component? ComponentAt(this Placeholder placeholder, int index)

Parameters

placeholder Placeholder

The placeholder feature collection.

index int

The index of the component to be returned.

Returns

Component

A Component.