Class ParagraphRenderer
A renderer for a paragraph.
Inheritance
System.Object
ParagraphRenderer
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 ParagraphRenderer : IContentRenderer
Constructors
ParagraphRenderer(ContentRendererCollection)
Initializes a new PragraphRenderer
Declaration
public ParagraphRenderer(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
Methods
Render(IContent)
Renders the content to an html p-tag.
Declaration
public string Render(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content to render. |
Returns
Type | Description |
---|---|
System.String | The p-tag as a string. |
Implements
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
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 paragraph, otherwise false. |