您可以挂上Spread的ChildWorkbookCreated事件,然后在事件中书写如下代码就可以把横向滚动条隐藏掉:
private void fpSpread1_ChildWorkbookCreated(object sender, FarPoint.Win.Spread.ChildWorkbookCreatedEventArgs e)
{
System.Collections.ArrayList childs = new System.Collections.ArrayList();
childs = fpSpread1.GetRootWorkbook().GetChildWorkbooks();
foreach (FarPoint.Win.Spread.SpreadView sv in childs)
{
sv.HorizontalScrollBarPolicy = ScrollBarPolicy.Never;
}
} |