TextContent
Class
Represents text-based content with a specified MIME type.
Definition
Namespace:Telerik.Reporting.AI
Assembly:Telerik.Reporting.dll
Syntax:
C#
public sealed class TextContent : IContent
Inheritance: objectTextContent
Implements:
Constructors
Initializes a new instance with the specified text and MIME type.
C#
public TextContent(string text, string mimeType)
The text content.
mimeTypestringThe MIME type of the text content.
Initializes a new instance with the specified text using "text/plain" as the default MIME type.
C#
public TextContent(string text)
The text content.
Fields
ContentType
string
Defines the type identifier for TextContent.
C#
public const string ContentType = "TextContent"
DefaultMimeType
string
Defines the default MIME type for TextContent.
C#
public const string DefaultMimeType = "text/plain"
Properties
Text
string
Gets the text content.
C#
public string Text { get; }
Methods
AsString()
string
Returns the text content as a string.
C#
public string AsString()
string
The text content.
Implements: