示例#1
0
 internal ExcelStyle(ExcelStyles styles, Zephyr.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int positionID, string Address, int xfsId) :
     base(styles, ChangedEvent, positionID, Address)
 {
     Index = xfsId;
     ExcelXfs xfs;
     if (positionID > -1)
     {
         xfs = _styles.CellXfs[xfsId];
     }
     else
     {
         xfs = _styles.CellStyleXfs[xfsId];
     }
     Styles = styles;
     PositionID = positionID;
     Numberformat = new ExcelNumberFormat(styles, ChangedEvent, PositionID, Address, xfs.NumberFormatId);
     Font = new ExcelFont(styles, ChangedEvent, PositionID, Address, xfs.FontId);
     Fill = new ExcelFill(styles, ChangedEvent, PositionID, Address, xfs.FillId);
     Border = new Border(styles, ChangedEvent, PositionID, Address, xfs.BorderId); 
 }
示例#2
0
        internal ExcelStyle(ExcelStyles styles, Zephyr.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int positionID, string Address, int xfsId) :
            base(styles, ChangedEvent, positionID, Address)
        {
            Index = xfsId;
            ExcelXfs xfs;

            if (positionID > -1)
            {
                xfs = _styles.CellXfs[xfsId];
            }
            else
            {
                xfs = _styles.CellStyleXfs[xfsId];
            }
            Styles       = styles;
            PositionID   = positionID;
            Numberformat = new ExcelNumberFormat(styles, ChangedEvent, PositionID, Address, xfs.NumberFormatId);
            Font         = new ExcelFont(styles, ChangedEvent, PositionID, Address, xfs.FontId);
            Fill         = new ExcelFill(styles, ChangedEvent, PositionID, Address, xfs.FillId);
            Border       = new Border(styles, ChangedEvent, PositionID, Address, xfs.BorderId);
        }