public BoxDetail(string _name) { boxfillcolor = Color.Purple; boxthickness = 6; gradient = 0; gradientColor = Color.Purple; name = _name; primaryFont = new FontDetail(1); secondaryFont = new FontDetail(1); boxType = BoxType.rect; }
public FontDetail GetBoxSecondaryFont(string nodetype) { FontDetail defaultc = new FontDetail(1); foreach (BoxDetail box in boxes) { if (box.name == nodetype) { return(box.secondaryFont); } else if (box.name == "defaultbox") { defaultc = box.secondaryFont;; } } return(defaultc); }