/// <summary> /// Creates a new ExcelCellInfo with the given info. /// </summary> /// <param name="rowIndex">The row index.</param> /// <param name="columnIndex">The column index.</param> /// <param name="parent">The parent worksheet.</param> public ExcelCellInfo(int rowIndex, int columnIndex, ExcelWorksheetInfo parent) { if (parent == null) throw new ArgumentNullException("parent"); RowIndex = rowIndex; ColumnIndex = columnIndex; Parent = parent; }
/// <summary> /// Creates the ExcelWorksheetElement. /// </summary> /// <param name="windowHandle">The window handle.</param> /// <param name="worksheetInfo">The worksheet info.</param> /// <param name="manager">The technology manager.</param> internal ExcelWorksheetElement(IntPtr windowHandle, ExcelWorksheetInfo worksheetInfo, ExcelTechnologyManager manager) : base(windowHandle, manager) { this.WorksheetInfo = worksheetInfo; }
/// <summary> /// Gets the Worksheet from the worksheet info. /// </summary> /// <param name="sheetInfo">The worksheet info.</param> /// <returns>The Worksheet.</returns> private Worksheet GetWorksheet(ExcelWorksheetInfo sheetInfo) { return this.application.Worksheets[sheetInfo.SheetName] as Worksheet; }