Example #1
0
        public void AddColumn(string name, Type type, uint style)
        {
            if (_columns == null)
            {
                _columns = new XlColumns();
            }
            XlColumn column = new XlColumn(name, type, style);

            _columns.AddColumn(column);
        }
Example #2
0
        public void XlColumnNameAndTypeTest()
        {
            string expectedName  = "Column 1";
            Type   expectedType  = typeof(int);
            uint   expectedStyle = Osrs.Oncor.Excel.StyleSheetHelper.Red;

            Osrs.Oncor.Excel.XlColumn column = new Osrs.Oncor.Excel.XlColumn(expectedName, expectedType, expectedStyle);
            string actualName = column.Name;

            Assert.AreEqual(expectedName, actualName);
            Type actualType = column.Type;

            Assert.AreEqual(expectedType, actualType);
            uint actualStyle = column.Style;

            Assert.AreEqual(expectedStyle, actualStyle);
        }
Example #3
0
        public void AddColumn(string name, Type type, uint style)
        {
            XlColumn column = new XlColumn(name, type, style);

            Columns.AddColumn(column);
        }