public XlWorksheet(string name, XlColor tabColor, int position, XlSchema schema) { Name = name; TabColor = tabColor; Position = position; Schema = schema; }
public XlWorksheet AddWorksheet(string name, XlColor tabColor, XlSchema schema) { XlWorksheet sheet = new XlWorksheet(name, tabColor, NextSheetNumber, schema); _worksheets.Add(sheet); IncrementSheetNumber(); return(sheet); }
public void XlSchemaAddOneColumnTest() { Osrs.Oncor.Excel.XlSchema schema = new Osrs.Oncor.Excel.XlSchema(); string expectedName = "Column 1"; Type expectedType = typeof(double); uint expectedStyle = Osrs.Oncor.Excel.StyleSheetHelper.Red; schema.AddColumn(expectedName, expectedType, expectedStyle); Assert.AreEqual(schema.Columns.Count, 1); }
public void XlSchemaHasNoColumnsTest() { Osrs.Oncor.Excel.XlSchema schema = new Osrs.Oncor.Excel.XlSchema(); Assert.AreEqual(schema.Columns.Count, 0); }