Пример #1
0
        internal CanvasColumn(CanvasSection section, int order)
        {
            if (section == null)
            {
                throw new ArgumentNullException(nameof(section));
            }

            Section     = section;
            Order       = order;
            LayoutIndex = 1;
        }
Пример #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;
        }
Пример #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;
        }
Пример #4
0
 internal void MoveTo(CanvasSection section)
 {
     Section = section;
 }