Show / Hide Table of Contents

Class SelectionInput.Types.SelectionItem

An item that users can select in a selection input, such as a checkbox or switch. Supports up to 100 items.

Google Workspace add-ons and Chat apps:

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

Constructors

SelectionItem()

Declaration
public SelectionItem()

SelectionItem(SelectionItem)

Declaration
public SelectionItem(SelectionInput.Types.SelectionItem other)
Parameters
Type Name Description
SelectionInput.Types.SelectionItem other

Properties

BottomText

For multiselect menus, a text description or label that's displayed below the item's text field.

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

HasStartIconUri

Gets whether the "start_icon_uri" field is set

Declaration
public bool HasStartIconUri { get; }
Property Value
Type Description
bool

Selected

Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.

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

StartIconCase

Declaration
public SelectionInput.Types.SelectionItem.StartIconOneofCase StartIconCase { get; }
Property Value
Type Description
SelectionInput.Types.SelectionItem.StartIconOneofCase

StartIconUri

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

Text

The text that identifies or describes the item to users.

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

Value

The value associated with this item. The client should use this as a form input value.

For details about working with form inputs, see Receive form data.

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