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.
Implements
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.
Declaration
public TextParagraph.Types.TextSyntax TextSyntax { get; set; }
Property Value
| Type | Description |
|---|---|
| TextParagraph.Types.TextSyntax |