Wrapping Enumeration

Specifies how rendered text is wrapped. This class cannot be inherited.

public sealed enum System.Web.UI.MobileControls.Wrapping : System.Enum

Remarks

Various wrapping modes are only supported on certain devices. See information about device-specific rendering of styles for details. In the following ASP.NET code fragment, the Text property of a Label control is set to Wrap.

<mobile:Form
   runat="server"
   <mobile:Label
      runat="server"
      Wrapping="Wrap">
      Extend the power of ASP.NET and .NET Framework to build ASP.NET 
      mobile Web applications for cell phones and Pocket PCs. The                                       
      ASP.NET page framework provides mobile controls that generate
      WML 1.1.
   </mobile:Label>
</mobile:Form>

Members

Member name Description
NotSet Default value. If the value is NotSet, then whether a control wraps or not is inherited from the control's style, or, if the style is not defined, from the control's parent control.
Wrap Text is wrapped at the margins of a screen or a container.
NoWrap Text is not wrapped.

Example

This example displays a paragraph of text in a wrapped format.

[C#]

private void Form1_Activate(object sender, System.EventArgs e)
{
   Label1.Text="Extend the power of ASP.NET and .NET Framework
   to build ASP.NET mobile Web applications for cell phones and Pocket PCs.
   The ASP.NET page framework provides mobile controls that generate
   WML 1.1."
   Label1.Wrapping=Wrapping.Wrap;
}

Requirements

Namespace: System.Web.UI.MobileControls

Assembly: System.Web.Mobile

See Also

Adding New Device Adapters and Device Support | Device-Specific Rendering

System.Web.UI.MobileControls Namespace