Beispiel #1
0
 private void Reset()
 {
     this.worksheets = new ExcelWorksheetCollection(this);
     this.cachedMsoDrawingGroupArguments = null;
     this.cellStyleCache         = new CellStyleCachedCollection(QueueSizeFromAffectedCellsLimit(this.groupMethodsAffectedCellsLimit));
     this.protectedMbr           = false;
     this.summaryStream          = null;
     this.documentSummaryStream  = null;
     this.PreservedGlobalRecords = null;
     this.use1904DateSystem      = false;
 }
Beispiel #2
0
 public CellStyleData(CellStyleCachedCollection parentCollection, bool isDefault)
     : base(parentCollection, isDefault)
 {
     this.HorizontalAlignment    = HorizontalAlignmentStyle.General;
     this.VerticalAlignment      = VerticalAlignmentStyle.Bottom;
     this.PatternStyle           = FillPatternStyle.None;
     this.PatternBackgroundColor = Color.White;
     this.PatternForegroundColor = Color.Black;
     this.Locked       = true;
     this.NumberFormat = string.Empty;
     this.FontData     = new ExcelFontData();
     this.BorderColor  = new Color[] { Color.Black, Color.Black, Color.Black, Color.Black, Color.Black };
     this.BorderStyle  = new LineStyle[5];
     this.BordersUsed  = MultipleBorders.None;
 }
Beispiel #3
0
 internal CellStyle(CellStyleCachedCollection styleCollection)
 {
     this.UseFlags = CellStyleData.Properties.None;
     this.element  = (CellStyleData)styleCollection.DefaultElement;
 }
Beispiel #4
0
 private void Initialize()
 {
     SpreadsheetInfo.ValidateLicense(this);
     this.worksheets     = new ExcelWorksheetCollection(this);
     this.cellStyleCache = new CellStyleCachedCollection(QueueSizeFromAffectedCellsLimit(this.groupMethodsAffectedCellsLimit));
 }