老阴阳人了

导航

Spread for Windows Forms获取选中单元格的行列下标

/// <summary>
/// 单击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void fpSpread1_CellClick(object sender, CellClickEventArgs e)
{
//获取行
int row = fpSpread1.ActiveSheet.ActiveRowIndex;
//获取列
int col = fpSpread1.ActiveSheet.ActiveColumnIndex;
}

posted on 2020-07-28 10:55  老阴阳人了  阅读(153)  评论(0编辑  收藏  举报