public void SetHeights(params object[] heights) { foreach (var h in heights) { var hh = h; if (h is PSObject psobj) { hh = psobj.BaseObject; } _heights.Add(SmartConverter.ToDouble(hh)); } }
public void SetWidths(params object[] widths) { foreach (var w in widths) { var ww = w; if (w is PSObject psobj) { ww = psobj.BaseObject; } _widths.Add(SmartConverter.ToDouble(ww)); } }