public void BeginHorizontal(bool?yscale = null) { if (Generated) { throw new AlreadyGeneratedException(); } currentItem.AddRow(currentItem.CurrentRow = new DynamicRow()); this.yscale = yscale; }
/// <summary> /// Begins a new horizontal row section /// </summary> /// <remarks> /// After calling this method, each subsequent call to <see cref="Add"/> will add controls in a horizontal orientation. /// /// When finished adding controls to the horizontal section, call <see cref="EndHorizontal"/> /// </remarks> /// <returns>A new row to hold the horizontal controls</returns> /// <param name="yscale">YScale of the horizontal section</param> public DynamicRow BeginHorizontal(bool?yscale = null) { currentItem.AddRow(currentItem.CurrentRow = new DynamicRow()); this.yscale = yscale; return(currentItem.CurrentRow); }
/// <summary> /// Begins a new horizontal row section /// </summary> /// <remarks> /// After calling this method, each subsequent call to <see cref="Add"/> will add controls in a horizontal orientation. /// /// When finished adding controls to the horizontal section, call <see cref="EndHorizontal"/> /// </remarks> /// <returns>A new row to hold the horizontal controls</returns> /// <param name="yscale">YScale of the horizontal section</param> public DynamicRow BeginHorizontal(bool?yscale = null) { currentItem.AddRow(currentItem.CurrentRow = new DynamicRow()); yscales.Push(yscale); return(currentItem.CurrentRow); }