public LabelItem(float x_percent, float y_percent, string text, int category){ if (!(category >= 1 && category <= 9)) throw new Exception(); X_percent = x_percent; Y_percent = y_percent; Text = text; Category = category; } }