Class ComponentSectionProperties
public class ComponentSectionProperties : IMessageComponentProperties, IJsonSerializable<IMessageComponentProperties>, IComponentContainerComponentProperties, IJsonSerializable<IComponentContainerComponentProperties>, IComponentProperties, IEnumerable<TextDisplayProperties>, IEnumerable
- Inheritance
-
ComponentSectionProperties
- Implements
- Inherited Members
Constructors
ComponentSectionProperties(IComponentSectionAccessoryComponentProperties)
public ComponentSectionProperties(IComponentSectionAccessoryComponentProperties accessory)
Parameters
ComponentSectionProperties(IComponentSectionAccessoryComponentProperties, IEnumerable<TextDisplayProperties>)
public ComponentSectionProperties(IComponentSectionAccessoryComponentProperties accessory, IEnumerable<TextDisplayProperties> components)
Parameters
accessory
IComponentSectionAccessoryComponentPropertiescomponents
IEnumerable<TextDisplayProperties>
Properties
Accessory
public IComponentSectionAccessoryComponentProperties Accessory { get; set; }
Property Value
ComponentType
Type of the component.
public ComponentType ComponentType { get; }
Property Value
Components
public IEnumerable<TextDisplayProperties> Components { get; set; }
Property Value
Id
Unique identifier for the component. Auto populated through increment if not provided.
public int? Id { get; set; }
Property Value
- int?
Methods
AddComponents(params IEnumerable<TextDisplayProperties>)
public ComponentSectionProperties AddComponents(params IEnumerable<TextDisplayProperties> components)
Parameters
components
IEnumerable<TextDisplayProperties>
Returns
WithAccessory(IComponentSectionAccessoryComponentProperties)
public ComponentSectionProperties WithAccessory(IComponentSectionAccessoryComponentProperties accessory)
Parameters
Returns
WithComponents(IEnumerable<TextDisplayProperties>)
public ComponentSectionProperties WithComponents(IEnumerable<TextDisplayProperties> components)
Parameters
components
IEnumerable<TextDisplayProperties>
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public ComponentSectionProperties WithId(int? id)
Parameters
id
int?