public static int GetColumnColspan(PageLayout layout, PageLayoutColumn column)
 {
     int colspan = 1;
     PageLayoutColumnWidthValue columnWidthValue =
         layout.ColumnWidths.FirstOrDefault(columnWidths => columnWidths.Column == column);
     if (columnWidthValue != null && columnWidthValue.Colspan.HasValue)
     {
         colspan = columnWidthValue.Colspan.Value;
     }
     else if (column.DefaultColspan.HasValue)
     {
         colspan = column.DefaultColspan.Value;
     }
     return colspan;
 }
 public static int GetColumnWidth(PageLayout layout, PageLayoutColumn column)
 {
     PageLayoutColumnWidthValue columnWidthValue =
         layout.ColumnWidths.FirstOrDefault(columnWidths => columnWidths.Column == column);
     return columnWidthValue != null ? columnWidthValue.WidthValue : column.DefaultWidthValue;
 }