Wrapping Property (Common)

Sets or returns the specified wrapping mode for the style. The default value is NotSet.

public virtual System.Web.UI.MobileControls.Wrapping Wrapping {
   get,
   set
}

Enumerations

The following table contains the definitions of the Wrapping enumeration.

Enumeration Value Description
NotSet 0 No size is set for the specified object. This is the default value.
Wrap 1 Wrap to the next line.
NoWrap 2 The text is not wrapped to the next line.

Inheritance

The following is a list of the classes that inherit the Wrapping property from the MobileControl base class.

AdRotator Class PagedControl Class
Calendar Class Panel Class
Command Class PhoneCall Class
CompareValidator Class RangeValidator Class
CustomValidator Class RegularExpressionValidator Class
Form Class RequiredFieldValidator Class
Image Class SelectionList Class
Label Class TextBox Class
Link Class TextControl Class
List Class TextView Class
ObjectList Class ValidationSummary Class

Example

The following example demonstrates how to use the Wrapping property.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim currentCapabilities as MobileCapabilities = 
            Ctype(Request.Browser, MobileCapabilities) 
    if (currentCapabilities.SupportsDivNoWrap) then 
        Form1.Wrapping = Wrapping.NoWrap 
    End if

End Sub

[C#]
public void Page_Load(Object sender, EventArgs e)
{
   MobileCapabilities currentCapabilities
      = (MobileCapabilities)Request.Browser;
   if (currentCapabilities.SupportsDivNoWrap)
   {
      Form1.Wrapping = Wrapping.NoWrap;
   }
}

See Also

Applies to: MobileControl Class