Class TextDisplayProperties
public class TextDisplayProperties : IComponentProperties, IJsonSerializable
- Inheritance
-
TextDisplayProperties
- Implements
- Inherited Members
Constructors
TextDisplayProperties(string)
public TextDisplayProperties(string content)
Parameters
content
string
Properties
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
Content
[JsonPropertyName("content")]
public string Content { get; set; }
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
WithContent(string)
public TextDisplayProperties WithContent(string content)
Parameters
content
string
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public TextDisplayProperties WithId(int? id)
Parameters
id
int?
Returns
WriteTo(Utf8JsonWriter)
public void WriteTo(Utf8JsonWriter writer)
Parameters
writer
Utf8JsonWriter