找回密码
 立即注册

QQ登录

只需一步,快速开始

CornsGrape

注册会员

10

主题

20

帖子

72

积分

注册会员

积分
72
CornsGrape
注册会员   /  发表于:2017-1-13 15:09  /   查看:3673  /  回复:3
    With fpSpread1
        .Row = 5
        .Col = 1
        .CellType = CellTypeStaticText
        .Text = "ABC"
        .TypeTextAlignVert = TypeTextAlignVertBottom
    End With
在vb6.0中使用以上的代码可以实现【使单元格类型是CellTypeStaticText的单元格文字在底部显示】的效果
但是TypeTextAlignVert 在Object Browser中是隐藏的,在各个API中也没有找到该属性。

想知道,如果我想在vs2008达到同样的效果该怎么做?

Ps:http://helpcentral.componentone. ... spwin-comprops.html(没有找到对应的)

3 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-1-13 21:52:01
沙发
CellTypeStaticText 对应得就是TextCellType


如果需要设置文字在底部显示,直接设置

            fpSpread2.ActiveSheet.Cells[0, 0].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom;

评分

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

查看全部评分

回复 使用道具 举报
CornsGrape
注册会员   /  发表于:2017-1-16 09:26:47
板凳
感激!验证后有效!
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-1-16 11:15:02
地板
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部