Beispiel #1
0
        internal CanvasColumn(CanvasSection section, int order)
        {
            if (section == null)
            {
                throw new ArgumentNullException(nameof(section));
            }

            Section     = section;
            Order       = order;
            LayoutIndex = 1;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        // 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;
        }
Beispiel #4
0
 internal void MoveTo(CanvasSection section)
 {
     Section = section;
 }