Show / Hide Table of Contents

Class TextRenderer

A renderer for a text node.

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

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 content as a 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 textual node, otherwise false.

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