Class NotificationFormattedText
A text item with formatting in a Notification.
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public sealed class NotificationFormattedText : NotificationItem
Constructors
View SourceNotificationFormattedText(params NotificationTextRun[])
Constructor
Declaration
public NotificationFormattedText(params NotificationTextRun[] runs)
Parameters
| Type | Name | Description |
|---|---|---|
| NotificationTextRun[] | runs | The runs of formatted text that comprise the item. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if runs or any of its elements is null. |
| ArgumentException | Thrown if runs is empty. |
Properties
View SourceRuns
Gets the runs of formatted text.
Declaration
public IReadOnlyList<NotificationTextRun> Runs { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<NotificationTextRun> |
Methods
View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |