internal CanvasColumn(CanvasSection section, int order) { if (section == null) { throw new ArgumentNullException("Passed section cannot be null"); } this.section = section; this.Order = order; this.layoutIndex = 1; }
internal CanvasColumn(CanvasSection section, int order, int?sectionFactor, int?layoutIndex) { if (section == null) { throw new ArgumentNullException("Passed section cannot be null"); } this.section = section; this.Order = order; this.columnFactor = sectionFactor.HasValue ? sectionFactor.Value : 12; this.layoutIndex = layoutIndex.HasValue ? layoutIndex.Value : 1; }
internal void MoveTo(CanvasSection section) { this.section = section; }
internal void MoveTo(CanvasSection newSection, CanvasColumn newColumn) { this.section = newSection; this.column = newColumn; }
/// <summary> /// Moves the control to another section and column /// </summary> /// <param name="newColumn">New column that will host the control</param> public void Move(CanvasColumn newColumn) { this.section = newColumn.Section; this.column = newColumn; }
/// <summary> /// Moves the control to another section and column /// </summary> /// <param name="newSection">New section that will host the control</param> /// <param name="order">New order for the control in the new section</param> public void Move(CanvasSection newSection, int order) { Move(newSection); this.order = order; }
/// <summary> /// Moves the control to another section and column /// </summary> /// <param name="newSection">New section that will host the control</param> public void Move(CanvasSection newSection) { this.section = newSection; this.column = newSection.DefaultColumn; }