fpSpread 设置Border 样式

fpSpread 设置Border 样式

// 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 影子博客 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/VictorBlog/p/5691802.html

你可能感兴趣的:(fpSpread 设置Border 样式)