Label Text Attribute

LabelText is used to change the labels of properties. Use this if you want a different label than the name of the property.

[LabelText("1")]
public int MyInt1 = 1;

[LabelText("2")]
public int MyInt2 = 12;

[LabelText("3")]
public int MyInt3 = 123;

[InfoBox("Use $ to refer to a member string.")]
[LabelText("$MyInt3")]
public string LabelText = "The label is taken from the number 3 above";

[InfoBox("Use @ to execute an expression.")]
[LabelText("@DateTime.Now.ToString(\"HH:mm:ss\")")]
public string DateTimeLabel;

[LabelText("Test", SdfIconType.HeartFill)]
public int LabelIcon1 = 123;

[LabelText("", SdfIconType.HeartFill)]
public int LabelIcon2 = 123;