回复 2楼pjsLucky的帖子
让您久等了。
- void gcSpread1_MouseDown(object sender, MouseButtonEventArgs e)
- {
- HitTestInformation info = gcSpreadSheet1.HitTest(e.GetPosition(gcSpreadSheet1).X, e.GetPosition(gcSpreadSheet1).Y);
- if (info.HitTestType == HitTestType.Corner)
- gcSpreadSheet1.Sheets [0].SetText (0,0,"Click SheetCorner of control");
- if (info.HeaderInfo != null)
- {
- if (info.HeaderInfo.InColumnResize)
- gcSpreadSheet1.Sheets[0].SetText(0, 0, "Column" + info.HeaderInfo.Column.ToString() + " is resizing");
- else if (info.HeaderInfo.InRowResize)
- gcSpreadSheet1.Sheets[0].SetText(0, 0, "Row" + info.HeaderInfo.Row.ToString() + " is resizing");
- }
- }
复制代码 |