Beispiel #1
0
 internal BorderProperties(BorderProperties borderProps, ExcelBorderPart part)
 {
     if (borderProps != null)
     {
         m_color = borderProps.Color;
         m_style = borderProps.Style;
         m_width = borderProps.Width;
     }
     m_part = part;
 }
Beispiel #2
0
 public BorderProperties(BorderProperties borderProps, ExcelBorderPart part)
 {
     if (borderProps != null)
     {
         this.m_color = borderProps.Color;
         this.m_style = borderProps.Style;
         this.m_width = borderProps.Width;
     }
     this.m_part = part;
 }
Beispiel #3
0
 public BorderProperties(ExcelBorderPart part)
 {
     this.m_part = part;
 }
Beispiel #4
0
 public BorderProperties(IColor color, ExcelBorderStyle style, ExcelBorderPart part)
 {
     this.m_color = color;
     this.m_style = style;
     this.m_part  = part;
 }
Beispiel #5
0
        private static BorderProperties FillBorderProperties(IExcelGenerator excel, BorderProperties currBorder, BorderProperties border, ExcelBorderPart part, object style, object width, object color)
        {
            BorderProperties borderProperties = currBorder;

            if (style != null)
            {
                if (borderProperties == null)
                {
                    borderProperties = new BorderProperties(border, part);
                }
                borderProperties.Style = LayoutConvert.ToBorderLineStyle((RPLFormat.BorderStyles)style);
            }
            if (width != null)
            {
                if (borderProperties == null)
                {
                    borderProperties = new BorderProperties(border, part);
                }
                borderProperties.Width = LayoutConvert.ToPoints((string)width);
            }
            if (color != null && !color.Equals("Transparent"))
            {
                if (borderProperties == null)
                {
                    borderProperties = new BorderProperties(border, part);
                }
                borderProperties.Color = excel.AddColor((string)color);
            }
            return(borderProperties);
        }
Beispiel #6
0
 internal BorderProperties(ExcelBorderPart part)
 {
     m_part = part;
 }
Beispiel #7
0
 internal BorderProperties(IColor color, ExcelBorderStyle style, ExcelBorderPart part)
 {
     m_color = color;
     m_style = style;
     m_part  = part;
 }