Class ContentRendererCollection
A collection of renderers.
Inheritance
System.Object
ContentRendererCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Contentful.Core.Models
Assembly:cs.temp.dll.dll
Syntax
public class ContentRendererCollection
Methods
AddRenderer(IContentRenderer)
Adds a renderer to the collection.
Declaration
public void AddRenderer(IContentRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentRenderer | renderer |
AddRenderers(IEnumerable<IContentRenderer>)
Adds multiple renderers to the collection.
Declaration
public void AddRenderers(IEnumerable<IContentRenderer> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<IContentRenderer> | collection |
GetRendererForContent(IContent)
Gets the first available renderer for a specific IContent.
Declaration
public IContentRenderer GetRendererForContent(IContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | content | The content to get a renderer for. |
Returns
| Type | Description |
|---|---|
| IContentRenderer | The found renderer or null. |