Example #1
0
		public Sheet CreateSheet (string name, int id)
		{
			if (Sheets.ContainsKey (id))
				throw new ArgumentException ("Workbook already contains sheet with this id", "id");

			return Sheets [id] = new Sheet (name, id);
		}
Example #2
0
		/// <summary>
		///   Internal constructor, must only be called by Sheet.CreateCell
		/// </summary>
		public Cell (Sheet sheet, int col, int row) 
		{
			Sheet = sheet;
			Col = col;
			Row = row;
			val = DefaultValue;
		}