FarPoint 基本设置

FarPoint 基本设置nbsp farpointwebf 0 分类 FpSpread 字号 大大 nbsp 中中 nbsp 小小 nbsp 设置行数列数 nbsp nbsp nbsp nbsp nbsp nbsp nbsp FpSpread1 ActiveSheetV ColumnCount 3 nbsp nbsp nbsp nbsp nbsp nbsp nbsp FpSpread1 ActiveSheetV RowCount 11 分页 nbsp nbsp nbsp nbsp nbsp nbsp nbsp FpSpread1 ActiveSheetV AllowPag

FarPoint.Web.Spread.NamedStyle backstyle = new FarPoint.Web.Spread.NamedStyle(“BlueBack”);

backstyle.BackColor = Color.Blue;

FarPoint.Web.Spread.NamedStyle text1style = new FarPoint.Web.Spread.NamedStyle(“OrangeText”, “BlueBack”);

text1style.ForeColor = Color.Orange;

FarPoint.Web.Spread.NamedStyle text2style = new FarPoint.Web.Spread.NamedStyle(“YellowText”, “BlueBack”);

text2style.ForeColor = Color.Yellow;

FpSpread1.NamedStyles.Add(backstyle);

FpSpread1.NamedStyles.Add(text1style);

FpSpread1.NamedStyles.Add(text2style);

FpSpread1.ActiveSheetView.Cells[0,0,2,0].StyleName = “OrangeText”;

FpSpread1.ActiveSheetView.Cells[0,1,2,1].StyleName = “YellowText”;

使用css

FarPoint.Web.Spread.GeneralCellType mycelltype =       new FarPoint.Web.Spread.GeneralCellType();

myCellType.CssClass = “myCssClass”;

FpSpread1.ColumnHeader.Cells[0, 0].CellType = myCellType;

FpSpread1.Cells[0, 1].CellType = myCellType;

创建一个区域

FarPoint.Web.Spread.Cell range1;

range1 = fpSpread1.ActiveSheetView.Cells[1, 1, 3, 3];

range1.Value = “Value Here”;

range1.Note = “This is the note that describes the value.”;

添加合并单元

FpSpread1.ActiveSheetView.Cells[1,1].Text = “These six cells are spanned.”;

FpSpread1.ActiveSheetView.Cells[2,2].Text = “This is text in 2,2.”;

FpSpread1.ActiveSheetView.AddSpanCell(1, 1, 2, 3);

自动合并相同行列

FpSpread1.Sheets[0].SetRowMerge(-1, FarPoint.Web.Spread.Model.MergePolicy.Always);

FpSpread1.Sheets[0].SetColumnMerge(-1, FarPoint.Web.Spread.Model.MergePolicy.Always);

设置滚动条

FpSpread1.HorizontalScrollBarPolicy = ScrollBarPolicy.Always;

FpSpread1.VerticalScrollBarPolicy = ScrollBarPolicy.AsNeeded;

设置滚动条的颜色

FpSpread1.ScrollBar3DLightColor = Color.Yellow;

FpSpread1.ScrollBarArrowColor = Color.Green;

FpSpread1.ScrollBarBaseColor = Color.Brown;

FpSpread1.ScrollBarDarkShadowColor = Color.Purple;

FpSpread1.ScrollBarFaceColor = Color.Orange;

FpSpread1.ScrollBarHighlightColor = Color.White;

FpSpread1.ScrollBarShadowColor = Color.Blue;

FpSpread1.ScrollBarTrackColor = Color.Pink;

FpSpread1.Sheets[0].AllowLoadOnDemand = True;

FpSpread1.Sheets(0).PageSize = 40

FpSpread1.Sheets[0].LoadInitRowCount = 10;

long i;

for (i = 1; i <= 20; i++)

{

FpSpread1.Sheets[0].Cells[i, 0].Value = i;

}

TabKey

FpSpread1.ProcessTab = false;

定义tab的样式

FpSpread1.Sheets.Count = 3;

FarPoint.Web.Spread.TabInfo().TabControlPolicy = FarPoint.Web.Spread.TabControlPolicy.Always;

FpSpread1.Tab.VisibleCount = 2;

FpSpread1.Tab.ScrollIncrement = 2;

FpSpread1.Tab.FirstVisibleTab = 1;

FpSpread1.Tab.TextColor = Color.Yellow;

FpSpread1.Tab.ActiveTabBackColor = Color.Green;

FpSpread1.Tab[0] = “First”;

FpSpread1.Tab[1] = “Second”;

FpSpread1.Tab[2] = “Third”;

切换工作表是否ajax支持

FpSpread1.EnableAjaxCall = true;

FpSpread1.ClientAutoCalculation = true;

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/216851.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月18日 上午10:55
下一篇 2026年3月18日 上午10:55


相关推荐

  • Windows 8或不再支持1394接口「建议收藏」

    Windows 8或不再支持1394接口「建议收藏」根据上月底泄露的Windows8开发规划,微软新操作系统将提供对USB3.0、蓝牙3.0+HS等新外设接口的支持,而“古老”的IEEE1394接口却没有丝毫提及。有媒体因此猜测,Windows8很可能将放弃对IEEE1394的支持。  IEEE1394接口标准于1995年颁布,由苹果主持推动,但其中的大部分技术标准来自德州仪器、索尼、DEC、IBM、意法半导体等企…

    2025年7月18日
    8
  • 讯飞亮相第85届教装展,全栈自主可控国产教育大模型赋能教学

    讯飞亮相第85届教装展,全栈自主可控国产教育大模型赋能教学

    2026年3月14日
    3
  • 普通最小二乘法讲解OLS线性回归

    普通最小二乘法讲解OLS线性回归文章来源 http pocore com blog article 529 html 系列阅读原始数据 nbsp nbsp 1 nbsp x nbsp nbsp y nbsp nbsp 最终拟合为 y a x 1 b1 000000 0 067732 3 176513 xArr nbsp 1 0 nbsp 0 067732 nbsp 1 0 nbsp 0 42781 nbsp yArr nbsp 3 176513 nbsp 3 816464 nbsp 4 550095 矩阵转换 xMat n

    2026年3月26日
    2
  • java渗透测试框架_java编程

    java渗透测试框架_java编程(7)sqlmap(python脚本学习下)经典sql注入工具(这种针对参数的工具,不知道是不是扫描方式有问题,还是怎么着,怎么才能抓几个包,或者把常用点的包抓出来)抓几个sqlmap的包sqlmap功能很强大,这里就抓了一个结合burpsuitePOSTsqlmap的包(也可以用Burpsuitesqlmap插件http://www.freebuf.com/tools/6426.html)命令:…

    2022年8月12日
    7
  • Pycharm中更改镜像源

    Pycharm中更改镜像源镜像网站是将一个完全相同的站点放到几个服务器 分别有自己的 URL 在这些服务器上互为镜像网站 它和主站并没有太大差别 或者可算是为主站作的后备措施 有了镜像网站的好处是 如果不能对主站作正常访问 如某个服务器死掉或出了意外 但仍能通过其它服务器正常浏览 相对来说主站在速度等各方面比镜像站点略胜一筹

    2026年3月27日
    2
  • VeryCD网站无法访问 遭广电总局强行关闭[通俗易懂]

    VeryCD网站无法访问 遭广电总局强行关闭[通俗易懂]就在昨天还可以正常访问的知名下载网站VeryCD今天下午2点半左右突然无法访问,分析人士称或与广电总局最近的新政策有关。知名下载网站VeryCD首页截图  12月9日下午消息,多名网友向腾讯科技反映,就在昨天还可以正常访问的知名下载网站VeryCD今天下午2点半左右突然无法访问,分析人士称或与广电总局最近的新政策有关。  据悉,除了北京网友无法访问外,深圳以及上…

    2022年8月10日
    10

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号