Posted 7 March 2019, 12:43 pm EST
OK, after much investigation, I gather there is a “new api” which is described by the IWorkbook, IWorksheet, etc… interfaces.
You can cast a fpSpread to an IWorkbook using fpSpread.AsWorkbook().
Hence I am able to invoke the FormatCells dialog as follows.
IWorkbook wb = fpSpread1.AsWorkbook();
var cellrange = fpSpread1.ActiveSheet.GetSelection(0);
if (cellrange != null)
{
var cellref = new Reference(cellrange.Row,
cellrange.Column,
cellrange.Row + cellrange.RowCount - 1,
cellrange.Column + cellrange.ColumnCount - 1);
FormatCells fcd = new FormatCells(wb.ActiveSheet, cellref, FormatCells.FormatCellsTab.Number);
fcd.ShowDialog();
}
Are there any general tutorials on using the “new api”?