统计在线人数...

asp.net移动控件中文本的自动换行

[ 来源:转载 | 作者:佚名 | 时间:2006-5-29 下午 12:09:32 | 浏览:统计中... ]

通过修改移动控件的Wrapping属性,可以控制Label控件或TextView控件中文本自动换行显示。Wrapping属性的可选值为NotSet,Wrap和NoWrap.
    如果设置为NoWrap,那么表单中一行内超过屏幕的文本将不会自动的换行到新的一行中。程序清单页面的表单中包含一个很长的文本,其换行被禁用。

C#代码

<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" %>

<Mobile:Form runat="server">
<Mobile:TextView
  Wrapping="NoWrap" 
  Runat="Server">

This is a line of text that goes off the side of the page because it is very long

</Mobile:TextView>
</Mobile:Form>

VB。NET代码

<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" %>

<Mobile:Form runat="server">
<Mobile:TextView
  Wrapping="NoWrap" 
  Runat="Server">

This is a line of text that goes off the side of the page because it is very long

</Mobile:TextView>
</Mobile:Form>

共有0人参与评价,平均得分:0分
评论内容只代表网友观点,与本站立场无关! 查看完整内容
   

当前在线人数
QQ:748838 MSN:allen_xia#msn.com E-mail:allenxia666#126.com QQ群:站长联盟北方区-北京(28200145) 站长联盟南方区-上海(67713522)