-
Notifications
You must be signed in to change notification settings - Fork 26
uwidgets.core.models.widgetlayout
Namespace: uWidgets.Core.Models
Layout of a single widget, stored in layout.json.
public class WidgetLayout : System.IEquatable`1[[uWidgets.Core.Models.WidgetLayout, uWidgets.Core, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]Inheritance Object → WidgetLayout
Implements IEquatable<WidgetLayout>
Attributes NullableContextAttribute, NullableAttribute
protected Type EqualityContract { get; }Assembly name of the widget.
public string Type { get; set; }UserControl name of the widget.
public string SubType { get; set; }X coordinate of the widget's top-left corner.
public int X { get; set; }Y coordinate of the widget's top-left corner.
public int Y { get; set; }Width of the widget.
public int Width { get; set; }Height of the widget.
public int Height { get; set; }Widget's model as
public Nullable<JsonElement> Settings { get; set; }Layout of a single widget, stored in layout.json.
public WidgetLayout(string Type, string SubType, int X, int Y, int Width, int Height, Nullable<JsonElement> Settings)Type String
Assembly name of the widget.
SubType String
UserControl name of the widget.
X Int32
X coordinate of the widget's top-left corner.
Y Int32
Y coordinate of the widget's top-left corner.
Width Int32
Width of the widget.
Height Int32
Height of the widget.
Settings Nullable<JsonElement>
Widget's model as
protected WidgetLayout(WidgetLayout original)original WidgetLayout
Get the widget's model.
public T GetModel<T>()T
Type of the widget's model.
T
Widget's model.
Get the widget's model.
public object GetModel(Type type)type Type
Type of the widget's model.
Object
Widget's model.
public string ToString()protected bool PrintMembers(StringBuilder builder)builder StringBuilder
public int GetHashCode()public bool Equals(object obj)obj Object
public bool Equals(WidgetLayout other)other WidgetLayout
public WidgetLayout <Clone>$()public void Deconstruct(String& Type, String& SubType, Int32& X, Int32& Y, Int32& Width, Int32& Height, Nullable`1& Settings)Type String&
SubType String&
X Int32&
Y Int32&
Width Int32&
Height Int32&
Settings Nullable`1&