找回密码
 立即注册

QQ登录

只需一步,快速开始

oceansoft
高级会员   /  发表于:2013-3-27 16:51  /   查看:4811  /  回复:1
请问怎么获取控件的滚动条,项目有需求要求控制滚动条的控制条位置。

1 个回复

倒序浏览
Zoe
银牌会员   /  发表于:2013-3-27 17:37:00
沙发
回复 1楼oceansoft的帖子

目前产品不支持这个功能,能不能把您的实际使用场景告诉我,我看看是否可以给您提供解决方案。

我们产品有ShowCell/ShowRow/ShowColumn的功能,可以让滚动条滚动到想要的位置,不知道是否满足您的需求。

  1. private void button1_Click(object sender, RoutedEventArgs e)
  2.         {
  3. //Uncomment a method to test
  4. //gcSpreadSheet1.Sheets[0].SetActiveCell(10, 7);
  5. //gcSpreadSheet1.ShowActiveCell(GrapeCity.Windows.SpreadSheet.UI.VerticalPosition.Bottom, GrapeCity.Windows.SpreadSheet.UI.HorizontalPosition.Left);
  6. //gcSpreadSheet1.ShowCell(0, 0, 20, 10, GrapeCity.Windows.SpreadSheet.UI.VerticalPosition.Bottom, GrapeCity.Windows.SpreadSheet.UI.HorizontalPosition.Right);
  7. //gcSpreadSheet1.ShowColumn(0, 10, GrapeCity.Windows.SpreadSheet.UI.HorizontalPosition.Nearest);
  8. gcSpreadSheet1.ShowRow(0, 50, GrapeCity.Windows.SpreadSheet.UI.VerticalPosition.Center);
  9. gcSpreadSheet1.Invalidate();           
  10.         }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部