文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > FarPoint Spread 组件的一些简单操作
侵权投诉

FarPoint Spread 组件的一些简单操作

此文档主要介绍了通过Spread组件模拟网页Excel效果,并可以实现一些简单的样式设置。

if (columnindex == columnFarthestIndex)

{

//头上单元格边线样式

FarPoint.Web.Spread.Border borderTop = new FarPoint.Web.Spread.Border();

borderTop.BorderColorLeft = System.Drawing.Color.FromName(borderColor);

borderTop.BorderColorTop = System.Drawing.Color.FromName(borderColor);

borderTop.BorderColorRight = System.Drawing.Color.FromName(borderColor);

borderTop.BorderColorBottom = System.Drawing.Color.LightGray;//..........................

borderTop.BorderStyleTop = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderTop.BorderStyleBottom = BorderStyle.NotSet; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderTop.BorderStyleLeft = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderTop.BorderStyleRight = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ FarPoint.Web.Spread.Cell cOnlyColumn;

cOnlyColumn = FpSpreadText.ActiveSheetView.Cells[rowindex, columnindex];

cOnlyColumn.Border = borderTop;

//中间单元格边线样式

for (int i = rowindex + 1; i < rowFarthestIndex; i++)

{

FarPoint.Web.Spread.Border bordermiddle = new FarPoint.Web.Spread.Border();

bordermiddle.BorderColorLeft = System.Drawing.Color.FromName(borderColor);

bordermiddle.BorderColorRight = System.Drawing.Color.FromName(borderColor);

bordermiddle.BorderColorTop = System.Drawing.Color.LightGray;//..........................

bordermiddle.BorderColorBottom = System.Drawing.Color.LightGray;//..........................

bordermiddle.BorderStyleTop = BorderStyle.NotSet;

bordermiddle.BorderStyleBottom = BorderStyle.NotSet;

bordermiddle.BorderStyleLeft = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ bordermiddle.BorderStyleRight = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ FarPoint.Web.Spread.Cell cmiddle;

cmiddle = FpSpreadText.ActiveSheetView.Cells[i, columnindex];

cmiddle.Border = bordermiddle;

}

//末尾单元格边线样式

FarPoint.Web.Spread.Border borderLast = new FarPoint.Web.Spread.Border();

borderLast.BorderColorTop = System.Drawing.Color.LightGray;//..........................

borderLast.BorderColorLeft = System.Drawing.Color.FromName(borderColor);

borderLast.BorderColorBottom = System.Drawing.Color.FromName(borderColor);

borderLast.BorderColorRight = System.Drawing.Color.FromName(borderColor);

borderLast.BorderStyleTop = BorderStyle.NotSet; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderLast.BorderStyleBottom = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderLast.BorderStyleLeft = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ borderLast.BorderStyleRight = BorderStyle.Solid; //~~~~~~~~~~~~~~~~~~~~~~~~~~ FarPoint.Web.Spread.Cell cLast;

cLast = FpSpreadText.ActiveSheetView.Cells[rowFarthestIndex, columnFarthestIndex];

cLast.Border = borderLast;

上一页第15页

你可能喜欢

热门文档

相关文档

  • FarPoint Spread控件使用

    FarPoint Spread控件使用_计算机软件及应用_IT/计算机_专业资料。FarPoint Spread WinForm交替背景色 grid1.BackColorStyle = 1 ret = grid1.SetOddEvenRowColor(...

  • Farpoint Spread5 WinForm中文帮助文档

    //gcdn.grapecity.com Spread 产品介绍 13 2.2 基本功能介绍 Spread 支持导入和导出 Microsoft Excel 格式的文件,支持 PDF 导出,支持多工作表、跨工作表 公式...

  • Farpoint spread说明

    Spread 基本知识(一) ---1 取得当前行号,列号.int row=e.Row; int count=e.Count; 或者: int rowindex = fpSpread1.ActiveSheet.ActiveRowIndex; int column...

  • Farpoint使用基础

    FarPoint.Win.Spread.InputMap im; //spdResult是你画面中定义的spread的名字...["基本剂量"] = myItem.BaseDose.ToString(); row["剂量单位"] = myItem...

  • Farpoint Spread5 Web中文帮助文档

    //gcdn.grapecity.com Spread 产品介终 13 2.2 基本功能介绍 Spread for ...单元格操作 3.1 设置单元格类型 Spread 5 for ASP.NET 支持 16 种单元格...

  • Farpoint使用基础篇

    FarPoint.Win.Spread.InputMap im; //spdResult是你画面中定义的spread的名字...["基本剂量"] = myItem.BaseDose.ToString(); row["剂量单位"] = myItem...

  • FarPoint FpSpread控件的使用心得

    通过设计器(Spread Designer)可以设置 Spread、Sheet、Selected Item 三种 对象的属性,以设计出所需的报表。使用方式是 将该控件拖到窗体中。 如果需要进行数据绑定...

  • Farpoint使用基础

    Farpoint使用基础_计算机软件及应用_IT/计算机_专业资料。C#使用spread...["基本剂量"] = myItem.BaseDose.ToString(); row["剂量单位"] = myItem...

  • Farpoint使用基础

    FarPoint.Win.Spread.InputMap im; //spdResult是你画面中定义的spread的名字...["基本剂量"] = myItem.BaseDose.ToString(); row["剂量单位"] = myItem...

  • Farpoint使用基础

    FarPoint.Win.Spread.InputMap im; //spdResult是你画面中定义的spread的名字...["基本剂量"] = myItem.BaseDose.ToString(); row["剂量单位"] = myItem...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email