コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: ExcelWorksheetElement.cs プロジェクト: k3foru/excel
 /// <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;
 }
コード例 #3
0
ファイル: UITestCommunicator.cs プロジェクト: k3foru/excel
 /// <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;
 }