Exemple #1
0
 public XlWorksheet(string name, XlColor tabColor, int position, XlSchema schema)
 {
     Name     = name;
     TabColor = tabColor;
     Position = position;
     Schema   = schema;
 }
Exemple #2
0
        public XlWorksheet AddWorksheet(string name, XlColor tabColor, XlSchema schema)
        {
            XlWorksheet sheet = new XlWorksheet(name, tabColor, NextSheetNumber, schema);

            _worksheets.Add(sheet);
            IncrementSheetNumber();
            return(sheet);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void XlSchemaHasNoColumnsTest()
 {
     Osrs.Oncor.Excel.XlSchema schema = new Osrs.Oncor.Excel.XlSchema();
     Assert.AreEqual(schema.Columns.Count, 0);
 }