LayoutArea AddDownArea(float r) { LayoutArea area = new LayoutArea(layout); layout.areas.Add(area); var line = AddHorizontalLine(r); area.SetLeftLine(Left); area.SetRightLine(Right); area.SetTopLine(line); area.SetDownLine(Down); SetDownLine(line); ModelElement.ScaleSize(model); return(area); }
LayoutArea AddRightArea(float r) { LayoutArea area = new LayoutArea(layout); layout.areas.Add(area); var line = AddVerticalLine(1 - r); area.SetLeftLine(line); area.SetRightLine(Right); area.SetTopLine(Top); area.SetDownLine(Down); SetRightLine(line); ModelElement.ScaleSize(model); return(area); }