Show / Hide Table of Contents

Class QuoteContentRenderer

A renderer for a quote.

Inheritance
System.Object
QuoteContentRenderer
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 QuoteContentRenderer : IContentRenderer

Constructors

QuoteContentRenderer(ContentRendererCollection)

Initializes a new QuoteContentRenderer.

Declaration
public QuoteContentRenderer(ContentRendererCollection rendererCollection)
Parameters
Type Name Description
ContentRendererCollection rendererCollection

The collection of renderer to use for sub-content.

Properties

Order

The order of this renderer in the collection.

Declaration
public int Order { get; set; }
Property Value
Type Description
System.Int32
Implements
IContentRenderer.Order

Methods

Render(IContent)

Renders the content to a string.

Declaration
public string Render(IContent content)
Parameters
Type Name Description
IContent content

The content to render.

Returns
Type Description
System.String

The list as a quote HTML string.

Implements
IContentRenderer.Render(IContent)

RenderAsync(IContent)

Renders the content asynchronously.

Declaration
public Task<string> RenderAsync(IContent content)
Parameters
Type Name Description
IContent content

The content to render.

Returns
Type Description
System.Threading.Tasks.Task<System.String>

The rendered string.

Implements
IContentRenderer.RenderAsync(IContent)

SupportsContent(IContent)

Whether or not this renderer supports the provided content.

Declaration
public bool SupportsContent(IContent content)
Parameters
Type Name Description
IContent content

The content to evaluate.

Returns
Type Description
System.Boolean

Returns true if the content is a list, otherwise false.

Implements
IContentRenderer.SupportsContent(IContent)
Back to top Copyright © 2015-2016 Contentful
Generated by DocFX