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);
上一篇:学习用CMake来编写Qt程序


下一篇:flume1.8 开发指南学习感悟