---
title: "Class PlaceholderExtensions"
slug: "sitecore.layoutservice.client.response.model.placeholderextensions"
abstract: ""
---
# Class PlaceholderExtensions

Extension methods for [Placeholder](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.placeholder.html).

## Inheritance

System.Object

PlaceholderExtensions

### **Namespace**: Sitecore.LayoutService.Client.Response.Model

#### **Assembly**: Sitecore.LayoutService.Client.Abstractions.dll

##### Syntax

```csharp
public static class PlaceholderExtensions : Object

```

### Methods

#### ChromeAt(Placeholder, Int32)

Returns the [EditableChrome](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.editablechrome.html) from the specified index in the placeholder feature collection.

##### Declaration

```csharp
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](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.editablechrome.html). |

#### ComponentAt(Placeholder, Int32)

Returns the [Component](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.component.html) from the specified index in the placeholder feature collection.

##### Declaration

```csharp
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](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.component.html). |
