---
title: "Class RenderingHelpers"
slug: "sitecore.aspnet.renderingengine.renderinghelpers"
abstract: ""
---
# Class RenderingHelpers

Rendering helpers.

## Inheritance

System.Object

RenderingHelpers

### **Namespace**: Sitecore.AspNet.RenderingEngine

#### **Assembly**: Sitecore.AspNet.RenderingEngine.Abstractions.dll

##### Syntax

```csharp
public class RenderingHelpers : Object

```

### Constructors

#### RenderingHelpers(IViewComponentHelper, IHtmlHelper)

Initializes a new instance of the [RenderingHelpers](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.aspnet.renderingengine.renderinghelpers.html) class.

##### Declaration

```csharp
public RenderingHelpers(IViewComponentHelper viewComponentHelper, IHtmlHelper htmlHelper)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| Microsoft.AspNetCore.Mvc.IViewComponentHelper | viewComponentHelper | The IViewComponetHelper instance Microsoft.AspNetCore.Mvc.IViewComponentHelper. |
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | The IHtmlHelper instance Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper. |

### Properties

#### HtmlHelper

Gets IHtmlHelper instance.

##### Declaration

```csharp
public IHtmlHelper HtmlHelper { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper |  |

#### ViewComponentHelper

Gets IViewComponentHelper instance.

##### Declaration

```csharp
public IViewComponentHelper ViewComponentHelper { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| Microsoft.AspNetCore.Mvc.IViewComponentHelper |  |
