Style.NET 1.1

System.Web.UI.MobileControls (

Styles define multiple appearance-related properties that apply to all mobile controls. These settings configure alignment, foreground and background color, and font. In addition, specialized controls can use custom Style objects that add additional properties. Style objects are most often used with stylesheets, which allow an easy way to apply consistent style settings to multiple controls. See the StyleSheet class reference for more information.

Note that mobile controls support a wide range of devices. Style properties may be ignored, depending on the capabilities of the client device.

public class Style : System.Web.UI.IParserAccessor, ITemplateable, System.Web.UI.IStateManager, ICloneable {
// Public Constructors
   public Style( );
// Public Static Fields
   public static readonly object AlignmentKey;                   // =System.Web.UI.MobileControls.Style+Property
   public static readonly object BackColorKey;                   // =System.Web.UI.MobileControls.Style+Property
   public static readonly object BoldKey;           // =System.Web.UI.MobileControls.Style+Property
   public static readonly object FontNameKey;       // =System.Web.UI.MobileControls.Style+Property
   public static readonly object FontSizeKey;       // =System.Web.UI.MobileControls.Style+Property
   public static readonly object ForeColorKey;                   // =System.Web.UI.MobileControls.Style+Property
   public static readonly object ItalicKey;         // =System.Web.UI.MobileControls.Style+Property
   public static readonly object WrappingKey;       // =System.Web.UI.MobileControls.Style+Property
// Public Instance Properties
   public Alignment Alignment{set; get; }
   public Color BackColor{set; get; }
   public MobileControl Control{get; }
   public DeviceSpecific DeviceSpecific{set; get; }
   public FontInfo Font{get; }
   public Color ForeColor{set; get; }
   public bool IsTemplated{get; }
   public string Name{set; get; }
   public virtual string StyleReference{set; get; }
   public object this[object key]{set; get; }
   public object this[object key, bool inherit]{get; }
   public Wrapping Wrapping{set; get; }
// Protected Instance Properties
   protected internal StateBag State{get; }
// Public Static Methods
   public static object RegisterStyle(string name, Type type, object defaultValue, bool inherit);
// Public Instance Methods
   public void ApplyTo(System.Web.UI.WebControls.WebControl control);
   public object Clone( );                           // implements ICloneable
   public ITemplate GetTemplate(string templateName);



Returned By

System.Web.UI.MobileControls.Adapters.ControlAdapter.Style, MobileControl.CreateStyle( ), ObjectList.{CommandStyle, LabelStyle}, StyleSheet.this

Passed To

System.Web.UI.MobileControls.Adapters.HtmlMobileTextWriter.{EnterStyle( ), ExitStyle( )}, System.Web.UI.MobileControls.Adapters.MobileTextWriter.{EnterFormat( ), EnterLayout( ), EnterStyle( ), ExitFormat( ), ExitLayout( ), ExitStyle( )}, ObjectList.{CommandStyle, LabelStyle}, StyleSheet.this

    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace