0
点赞
收藏
分享

微信扫一扫

葡萄城SpreadJS 鼠标右击单元格,获取选中的行

戴老师成长记录仪 2022-03-10 阅读 52
c#

葡萄城SpreadJS 鼠标右击单元格,获取选中的行

private void data_MouseDown(object sender, MouseEventArgs e){
	// 鼠标右击
	if(e.Button == MouseButtons.Right && e.Clicks == 1){
		HitTestInformation info = data.HitTest(e.X, e.Y);
		// 选中的行
		int row = info.ViewportInfo.Row;
	}
}
举报

相关推荐

0 条评论