internal CanvasColumn(CanvasSection section, int order) { if (section == null) { throw new ArgumentNullException(nameof(section)); } Section = section; Order = order; LayoutIndex = 1; }
internal CanvasColumn(CanvasSection section, int order, int?sectionFactor, int?layoutIndex) { if (section == null) { throw new ArgumentNullException(nameof(section)); } Section = section; Order = order; ColumnFactor = sectionFactor.HasValue ? sectionFactor.Value : 12; LayoutIndex = layoutIndex.HasValue ? layoutIndex.Value : 1; }
// internal constructors as we don't want users to manually create sections #region construction internal CanvasColumn(CanvasSection section) { if (section == null) { throw new ArgumentNullException(nameof(section)); } Section = section; ColumnFactor = 12; Order = 0; LayoutIndex = 1; }
internal void MoveTo(CanvasSection section) { Section = section; }