Show / Hide Table of Contents

Class TextParagraph

A paragraph of text that supports formatting. For an example in Google Chat apps, see Add a paragraph of formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons.

Google Workspace add-ons and Chat apps:

Inheritance
object
TextParagraph
Implements
IMessage<TextParagraph>
IEquatable<TextParagraph>
IDeepCloneable<TextParagraph>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class TextParagraph : IMessage<TextParagraph>, IEquatable<TextParagraph>, IDeepCloneable<TextParagraph>, IBufferMessage, IMessage

Constructors

TextParagraph()

Declaration
public TextParagraph()

TextParagraph(TextParagraph)

Declaration
public TextParagraph(TextParagraph other)
Parameters
Type Name Description
TextParagraph other

Properties

MaxLines

The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

The default value is 0, in which case all context is displayed. Negative values are ignored.

Declaration
public int MaxLines { get; set; }
Property Value
Type Description
int

Text

The text that's shown in the widget.

Declaration
public string Text { get; set; }
Property Value
Type Description
string

TextSyntax

The syntax of the text. If not set, the text is rendered as HTML.

Google Chat apps:

Declaration
public TextParagraph.Types.TextSyntax TextSyntax { get; set; }
Property Value
Type Description
TextParagraph.Types.TextSyntax
In this article
Back to top Generated by DocFX