Class MessageBox
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about the message box to show
public class MessageBox : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
MessageBox
- Implements
- Inherited Members
Constructors
MessageBox()
public MessageBox()
Properties
AxisControls
Bitmap of the axis movement controls to show (indices)
public long? AxisControls { get; set; }
Property Value
- long?
CancelButton
Indicates if a cancel button is supposed to be shown
public bool CancelButton { get; set; }
Property Value
Choices
List of possible choices (only for mode 4)
public ObservableCollection<string>? Choices { get; set; }
Property Value
Default
Default value (only for modes >= 4)
public object? Default { get; set; }
Property Value
Max
Maximum input value (only for modes >= 5)
public float? Max { get; set; }
Property Value
Message
Content of the message box
public string Message { get; set; }
Property Value
Min
Minimum input value (only for modes >= 5)
public float? Min { get; set; }
Property Value
Mode
Mode of the message box to display
public MessageBoxMode Mode { get; set; }
Property Value
Seq
Sequence number of the message box
public int Seq { get; set; }
Property Value
Remarks
This is increased whenever a new message box is supposed to be displayed
Timeout
Total timeout for this message box (in ms)
public int Timeout { get; set; }
Property Value
Title
Title of the message box
public string Title { get; set; }
Property Value
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data