1. IComponentRendererFactory

Interface IComponentRendererFactory

Version: 21.x

Creates the appropriate instance of an IComponentRenderer for a given Component.

Namespace: Sitecore.AspNet.RenderingEngine.Rendering
Assembly: Sitecore.AspNet.RenderingEngine.Abstractions.dll
Syntax
public interface IComponentRendererFactory

Methods

GetRenderer(Component)

Retrieves an IComponentRenderer that has been configured to render the specified Component.

Declaration
IComponentRenderer GetRenderer(Component component)
Parameters
TypeNameDescription
Componentcomponent

The Component that requires rendering.

Returns
TypeDescription
IComponentRenderer

An instance of an IComponentRenderer that has been configured to render the component.

If you have suggestions for improving this article, let us know!