找回密码
 立即注册

QQ登录

只需一步,快速开始

yangyong

论坛元老

6

主题

19

帖子

5068

积分

论坛元老

积分
5068

活字格认证

yangyong
论坛元老   /  发表于:2011-9-21 15:27  /   查看:6410  /  回复:7
怎么把textframe的边框去掉?

7 个回复

倒序浏览
BigTree
超级版主   /  发表于:2011-9-21 15:39:00
沙发

回复 1# yangyong 的帖子

把TextFrame.BorderWidth 设置为0
回复 使用道具 举报
gw0506
超级版主   /  发表于:2011-9-21 15:41:00
板凳
将TextFrame.BorderWidth设置为0即可。
回复 使用道具 举报
yangyong
论坛元老   /  发表于:2011-9-21 16:04:00
地板
我已经设置了啊frame.BorderWidth = 0;
                frame.InternalMargins = new int[] {0,0,0,0}; 但是还是有啊
图片:

jpg

jpg
回复 使用道具 举报
gw0506
超级版主   /  发表于:2011-9-21 17:48:00
5#
这里有个简单的示例,你可以试一下。设置BorderWidth为0应该没有问题的。
  1. TextFrame tf = new TextFrame(new Size(10, 10));
  2.             tf.BorderWidth = 0;
  3.             this.textControl1.TextFrames.Add(tf, 0);
复制代码

如果仍然不能解决你的问题,你可以把代码贴出来,或者给我发个demo。
回复 使用道具 举报
yangyong
论坛元老   /  发表于:2011-9-23 10:00:00
6#
TXText.zip (40.45 KB, 下载次数: 161)
回复 使用道具 举报
gw0506
超级版主   /  发表于:2011-9-23 10:18:00
7#
你好
你需要在添加一句代码:
  1. this.textControl1.TextFrameMarkerLines = false;
复制代码
回复 使用道具 举报
yangyong
论坛元老   /  发表于:2011-9-23 10:26:00
8#
好了,谢谢你
再问一下,能不能把表格的边框也隐藏了
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部