Class WidgetMarkup.Types.KeyValue
A UI element contains a key (label) and a value (content). This
element can also contain some actions such as onclick
button.
Inheritance
WidgetMarkup.Types.KeyValue
Assembly: Google.Apps.Chat.V1.dll
public sealed class WidgetMarkup.Types.KeyValue : IMessage<WidgetMarkup.Types.KeyValue>, IEquatable<WidgetMarkup.Types.KeyValue>, IDeepCloneable<WidgetMarkup.Types.KeyValue>, IBufferMessage, IMessage
Constructors
Declaration
Declaration
public KeyValue(WidgetMarkup.Types.KeyValue other)
Parameters
Properties
Declaration
public string BottomLabel { get; set; }
Property Value
A button that can be clicked to trigger an action.
Declaration
public WidgetMarkup.Types.Button Button { get; set; }
Property Value
Content
Declaration
public string Content { get; set; }
Property Value
ContentMultiline
If the content should be multiline.
Declaration
public bool ContentMultiline { get; set; }
Property Value
Declaration
public WidgetMarkup.Types.KeyValue.ControlOneofCase ControlCase { get; }
Property Value
Gets whether the "icon" field is set
Declaration
public bool HasIcon { get; }
Property Value
Gets whether the "icon_url" field is set
Declaration
public bool HasIconUrl { get; }
Property Value
An enum value that's replaced by the Chat API with the
corresponding icon image.
Declaration
public WidgetMarkup.Types.Icon Icon { get; set; }
Property Value
The icon specified by a URL.
Declaration
public string IconUrl { get; set; }
Property Value
Declaration
public WidgetMarkup.Types.KeyValue.IconsOneofCase IconsCase { get; }
Property Value
The onclick
action. Only the top label, bottom label, and content
region are clickable.
Declaration
public WidgetMarkup.Types.OnClick OnClick { get; set; }
Property Value
Declaration
public string TopLabel { get; set; }
Property Value