Class ActionRowProperties
public class ActionRowProperties : IComponentProperties, IEnumerable<IButtonProperties>, IEnumerable
- Inheritance
-
ActionRowProperties
- Implements
- Inherited Members
Constructors
ActionRowProperties()
public ActionRowProperties()
ActionRowProperties(IEnumerable<IButtonProperties>)
public ActionRowProperties(IEnumerable<IButtonProperties> buttons)
Parameters
buttons
IEnumerable<IButtonProperties>Buttons of the action row (max 5).
Properties
Buttons
Buttons of the action row (max 5).
[JsonPropertyName("components")]
public IEnumerable<IButtonProperties> Buttons { get; set; }
Property Value
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
Id
Unique identifier for the component. Auto populated through increment if not provided.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("id")]
public int? Id { get; set; }
Property Value
- int?
Methods
AddButtons(params IButtonProperties[])
Buttons of the action row (max 5).
public ActionRowProperties AddButtons(params IButtonProperties[] buttons)
Parameters
buttons
IButtonProperties[]
Returns
AddButtons(IEnumerable<IButtonProperties>)
Buttons of the action row (max 5).
public ActionRowProperties AddButtons(IEnumerable<IButtonProperties> buttons)
Parameters
buttons
IEnumerable<IButtonProperties>
Returns
WithButtons(IEnumerable<IButtonProperties>)
Buttons of the action row (max 5).
public ActionRowProperties WithButtons(IEnumerable<IButtonProperties> buttons)
Parameters
buttons
IEnumerable<IButtonProperties>
Returns
WithId(int?)
public ActionRowProperties WithId(int? id)
Parameters
id
int?