MobileControl.BreakAfter 属性


获取或设置一个属性,该属性确定是否在控件后呈现附加尾随换行符。Gets or sets a property that determines whether an additional trailing break is rendered after the control. 此换行符使后续内容从下一行开始。This break causes subsequent content to start on the next line. 默认值为 trueThe default is true. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

 virtual property bool BreakAfter { bool get(); void set(bool value); };
public virtual bool BreakAfter { get; set; }
member this.BreakAfter : bool with get, set
Public Overridable Property BreakAfter As Boolean


如果在控件后呈现附加尾随换行符,则为 true;否则为 falsetrue if an additional trailing break is rendered after the control; otherwise, false.




不要将此属性设置为 Form 控件上 trueDo not set this property to true on a Form control. 如果将此属性设置为 true,则控件将引发异常。If you set this property to true, the control will throw an exception.

尾随 break 没有意义的控件将忽略此属性。This property is ignored by controls for which a trailing break does not make sense. 下表列出了为某些类型的设备支持 BreakAfter 属性的控件。The following table lists the controls that support the BreakAfter property for certain kinds of devices. 下表显示了具有支持 BreakAfter 属性的设备类型的控件。The following table shows the controls with the types of devices that support the BreakAfter property. 请与设备制造商联系,以确定此属性在其设备上的效果。Check with device manufacturers to determine the effects of this property on their devices.

控件Control 具有 HTML 浏览器的设备Device With HTML Browser 具有 WML 浏览器的设备Device With WML Browser 具有 WML/UP 浏览器的设备Device with WML/UP Browser
Calendar Yes
Command Yes Yes
Image Yes Yes Yes
Label Yes Yes Yes
Link Yes Yes
ObjectList 是(除非设备的浏览器可以处理表)Yes (unless device's browser can handle tables)
Panel (默认值为 false)Panel (default is false) Yes Yes Yes
PhoneCall Yes Yes
SelectionList 是(除非浏览器可以处理表)Yes (Unless browser can handle tables) Yes
TextBox Yes Yes
TextView Yes Yes
TextViewElement Yes Yes
Validator Yes Yes Yes