private static void FillBottomBorderProperties(RPLStyleProps style, IExcelGenerator excel, ref BorderProperties bottomBorder)
        {
            BorderProperties currBorder = BorderInfo.FillBorderProperties(excel, null, bottomBorder, ExcelBorderPart.Bottom, style[5], style[10], style[0]);

            currBorder = BorderInfo.FillBorderProperties(excel, currBorder, bottomBorder, ExcelBorderPart.Bottom, style[9], style[14], style[4]);
            if (currBorder != null)
            {
                bottomBorder = currBorder;
            }
        }
        private static void FillTopBorderProperties(RPLStyleProps style, IExcelGenerator excel, ref BorderProperties topBorder)
        {
            BorderProperties currBorder = BorderInfo.FillBorderProperties(excel, null, topBorder, ExcelBorderPart.Top, style[5], style[10], style[0]);

            currBorder = BorderInfo.FillBorderProperties(excel, currBorder, topBorder, ExcelBorderPart.Top, style[8], style[13], style[3]);
            if (currBorder != null)
            {
                topBorder = currBorder;
            }
        }
        private static void FillRightBorderProperties(RPLStyleProps style, IExcelGenerator excel, ref BorderProperties rightBorder)
        {
            BorderProperties currBorder = BorderInfo.FillBorderProperties(excel, null, rightBorder, ExcelBorderPart.Right, style[5], style[10], style[0]);

            currBorder = BorderInfo.FillBorderProperties(excel, currBorder, rightBorder, ExcelBorderPart.Right, style[7], style[12], style[2]);
            if (currBorder != null)
            {
                rightBorder = currBorder;
            }
        }
        private static void FillLeftBorderProperties(RPLStyleProps style, IExcelGenerator excel, ref BorderProperties leftBorder)
        {
            BorderProperties currBorder = BorderInfo.FillBorderProperties(excel, null, leftBorder, ExcelBorderPart.Left, style[5], style[10], style[0]);

            currBorder = BorderInfo.FillBorderProperties(excel, currBorder, leftBorder, ExcelBorderPart.Left, style[6], style[11], style[1]);
            if (currBorder != null)
            {
                leftBorder = currBorder;
            }
        }
 public static void FillAllBorders(RPLStyleProps style, ref BorderProperties leftBorder, ref BorderProperties rightBorder, ref BorderProperties topBorder, ref BorderProperties bottomBorder, ref IColor backgroundColor, IExcelGenerator excel)
 {
     if (style[34] != null && !style[34].Equals("Transparent"))
     {
         backgroundColor = excel.AddColor((string)style[34]);
     }
     BorderInfo.FillLeftBorderProperties(style, excel, ref leftBorder);
     BorderInfo.FillRightBorderProperties(style, excel, ref rightBorder);
     BorderInfo.FillTopBorderProperties(style, excel, ref topBorder);
     BorderInfo.FillBottomBorderProperties(style, excel, ref bottomBorder);
 }
 public BorderInfo(RPLStyleProps style, bool omitBorderTop, bool omitBorderBottom, IExcelGenerator excel)
 {
     this.m_omitBorderTop    = omitBorderTop;
     this.m_omitBorderBottom = omitBorderBottom;
     BorderInfo.FillAllBorders(style, ref this.m_leftBorder, ref this.m_rightBorder, ref this.m_topBorder, ref this.m_bottomBorder, ref this.m_backgroundColor, excel);
 }