影子博客

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

// Create a new bevel border.
//FarPoint.Win.BevelBorder bevelbrdr = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Lowered, Color.Cyan, Color.DarkCyan,5);
FarPoint.Win.BevelBorder bevelbrdr = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Lowered, Color.Black, Color.Black, 2);
// Create a new SheetView object.
FarPoint.Win.Spread.SheetView newsheet = fpSpread2.Sheets[0];
// Set a cell's border to be the bevel border.
newsheet.Cells[3, 0, y-1, 17].Border = bevelbrdr;
//newsheet.Cells[10, 10].Border = bevelbrdr;
// Assign the SheetView object to the first sheet.
fpSpread2.Sheets[0] = newsheet;

        //自动合并
        //fpSpread2.Sheets[0].SetRowMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always);
        //fpSpread2.Sheets[0].SetColumnMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always);
posted on 2016-07-21 14:58  影子博客  阅读(823)  评论(0编辑  收藏  举报