Show / Hide Table of Contents

Class Card.Types.Section

A section contains a collection of widgets that are rendered vertically in the order that they're specified.

Google Workspace Add-ons and Chat apps:

Inheritance
object
Card.Types.Section
Implements
IMessage<Card.Types.Section>
IEquatable<Card.Types.Section>
IDeepCloneable<Card.Types.Section>
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 Card.Types.Section : IMessage<Card.Types.Section>, IEquatable<Card.Types.Section>, IDeepCloneable<Card.Types.Section>, IBufferMessage, IMessage

Constructors

Section()

Declaration
public Section()

Section(Section)

Declaration
public Section(Card.Types.Section other)
Parameters
Type Name Description
Card.Types.Section other

Properties

Collapsible

Indicates whether this section is collapsible.

Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking Show more. Users can hide the widgets again by clicking Show less.

To determine which widgets are hidden, specify uncollapsibleWidgetsCount.

Declaration
public bool Collapsible { get; set; }
Property Value
Type Description
bool

Header

Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

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

UncollapsibleWidgetsCount

The number of uncollapsible widgets which remain visible even when a section is collapsed.

For example, when a section contains five widgets and the uncollapsibleWidgetsCount is set to 2, the first two widgets are always shown and the last three are collapsed by default. The uncollapsibleWidgetsCount is taken into account only when collapsible is true.

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

Widgets

All the widgets in the section. Must contain at least one widget.

Declaration
public RepeatedField<Widget> Widgets { get; }
Property Value
Type Description
RepeatedField<Widget>
In this article
Back to top Generated by DocFX