以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]TextAlign用法  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=16312)

--  作者:johnbu
--  发布时间:2012/2/9 11:52:00
--  [求助]TextAlign用法

请给讲一下,TextAlign的用法吧,我在帮助里只看到他的值,但不太会调用。像其他的应该跟它一样吧比如

ImageAlign

TextImageRelation


--  作者:johnbu
--  发布时间:2012/2/9 13:05:00
--  
谁来给说一下呀,举个例子也行呀。
--  作者:czy
--  发布时间:2012/2/9 13:44:00
--  
e.Sender.TextImageRelation = TextImageRelation.ImageBeforeText
e.Sender.TextAlign = ContentAlignment.TopRight

--  作者:johnbu
--  发布时间:2012/2/9 13:56:00
--  
谢啦

--  作者:johnbu
--  发布时间:2012/2/9 13:56:00
--  

这是代码,以便大家使用

Dim but5 As WinForm.Button
but5 = e.Form.Controls("Button5")
but5.width = 75
but5.height = 25
but5.Image = GetImage("5.png")
but5.text = "执行"
but5.TextAlign = ContentAlignment.MiddleRight