找回密码
 立即注册

QQ登录

只需一步,快速开始

CornsGrape

注册会员

10

主题

20

帖子

72

积分

注册会员

积分
72
CornsGrape
注册会员   /  发表于:2017-1-17 09:50  /   查看:3481  /  回复:5
在vb6.0中和vb.net中,都有单元格类型
在vb6.0中设置单元格类型:
   With fpSpread1
             .Col = 1
            .Row = 1
            .CellType = CellTypeCheckBox

   End With
对应的,在vb.net中设置单元格类型:
  Dim lsprdCheckBoxCellType As FarPoint.Win.Spread.CellType.CheckBoxCellType
   With fpSpread1
             .sheets(0).Cells(0,0).CellType=lsprdCheckBoxCellType

   End With


通过以上的例子,我可以知道CheckBox的对应转换
我想知道,CellTypePic、CellTypeStaticText、CellTypeDate是怎么对应的?
Dim lsprdCheckBoxCellType As FarPoint.Win.Spread.CellType.????

5 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-1-17 10:26:58
沙发
ImageCellType, TextCellType,DateTimeCellType.

这三个应该是您需要的
回复 使用道具 举报
CornsGrape
注册会员   /  发表于:2017-1-17 10:34:22
板凳
冒昧再请问,CellTypeInteger、CellTypeFloat、CellTypeEdit这三个呢?
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-1-17 15:49:45
地板
您看下这个http://sphelp.grapecity.com/WebH ... n-comcelltypes.html

前两个应该都对应到 NumberCellType

CellTypeEdit 还是        TextCellType

之前的CellTypePic应该是MaskCellType

评分

参与人数 1满意度 +5 收起 理由
CornsGrape + 5

查看全部评分

回复 使用道具 举报
CornsGrape
注册会员   /  发表于:2017-1-17 16:01:39
5#
太感谢!
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-1-17 17:44:27
6#
应该的
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部