public static C1DisplayColumn ParseXML(XElement xElemDisplayColumn)
        {
            C1DisplayColumn        displayColumn   = new C1DisplayColumn();
            IEnumerable <XElement> notStyles       = xElemDisplayColumn.Elements().Where(x => x.Attribute("me") == null && x.Attribute("parent") == null && x.Name.ToString() != "ColumnDivider");
            IEnumerable <XElement> stylesXelements = xElemDisplayColumn.Elements().Where(x => x.Attribute("me") != null && x.Attribute("parent") != null);

            foreach (XElement style in stylesXelements)
            {
                displayColumn.Styles[style.Name.ToString()] = Style.ParseXML(style);
            }
            foreach (XElement property in notStyles)
            {
                displayColumn.Properties[property.Name.ToString()] = property.Value;
            }
            displayColumn.ColumnDivider = GridLines.ParseXML(xElemDisplayColumn.Element("ColumnDivider"));
            return(displayColumn);
        }
 public static bool MustRemoveLine(GridLines gridLines, string property)
 {
     // Both lines should be present or absent at the same time.
     return(Utilities.ProcessColorProperty(gridLines.Properties["Color"]).Equals(Constants.GridLinesAbsentPropertyValues["Color"]) &&
            gridLines.Properties["Style"].Equals(Constants.GridLinesAbsentPropertyValues["Style"]));
 }