Ejemplo n.º 1
0
 /// <summary>
 /// Set the cell value given the row index and column index.
 /// </summary>
 /// <param name="RowIndex">The row index.</param>
 /// <param name="ColumnIndex">The column index.</param>
 /// <param name="Data">The cell value data in rich text.</param>
 /// <returns>False if either the row index or column index (or both) are invalid. True otherwise.</returns>
 public bool SetCellValue(int RowIndex, int ColumnIndex, SLRstType Data)
 {
     return SetCellValue(RowIndex, ColumnIndex, Data.ToInlineString());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Set the cell value given a cell reference.
        /// </summary>
        /// <param name="CellReference">The cell reference, such as "A1".</param>
        /// <param name="Data">The cell value data in rich text.</param>
        /// <returns>False if the cell reference is invalid. True otherwise.</returns>
        public bool SetCellValue(string CellReference, SLRstType Data)
        {
            int iRowIndex = -1;
            int iColumnIndex = -1;
            if (!SLTool.FormatCellReferenceToRowColumnIndex(CellReference, out iRowIndex, out iColumnIndex))
            {
                return false;
            }

            return SetCellValue(iRowIndex, iColumnIndex, Data.ToInlineString());
        }