Spread Silverlight 右键单击时,如何设置鼠标所在位置为活动单元格
Spread Silverlight右键单击时,怎么设置鼠标所在位置为活动单元格?因为我要做右键菜单功能,类似与Excel右键,单击右键弹出菜单时,同时活动单元格定位在鼠标所在位置 回复 1楼yaoxiaoqiang00的帖子获取方法请参考代码:
private void GcSpreadSheet_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
HitTestInformation info = gcSpreadSheet1.HitTest(e.GetPosition(gcSpreadSheet1).X, e.GetPosition(gcSpreadSheet1).Y);
int row = info.ViewportInfo.Row;
int col = info.ViewportInfo.Column;
}
页:
[1]