Class NotificationTextRun
A run of text in a NotificationFormattedText.
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public sealed class NotificationTextRun
Constructors
NotificationTextRun(String, Nullable<Color>, Boolean, Boolean)
Constructor
Declaration
public NotificationTextRun(string text, Color? color = null, bool bold = false, bool italic = false)
Parameters
Type | Name | Description |
---|---|---|
String | text | The text to show. |
Nullable<Color> | color | The color of the text, or null to use default text color. |
Boolean | bold | Bold style of the text. |
Boolean | italic | Italic style of the text. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if text is null. |
Properties
Bold
Gets if the text is bold.
Declaration
public bool Bold { get; }
Property Value
Type | Description |
---|---|
Boolean |
Color
Gets the color of the text. If null, the default color is used.
Declaration
public Color? Color { get; }
Property Value
Type | Description |
---|---|
Nullable<Color> |
Italic
Gets if the text is italic.
Declaration
public bool Italic { get; }
Property Value
Type | Description |
---|---|
Boolean |
Text
Gets the text to show.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |