StyleSheet

StyleSheet.NET 1.1, disposable

System.Web.UI.MobileControls (system.web.mobile.dll)class

Style sheets are used to give mobile controls a consistent appearance. To use a style sheet, first add it to a mobile web page or user control. You can then create one or more Style objects for the control and add them to the Styles collection. (You can do this programmatically, or at design-time using the StyleSheet property builder.) Once you have created at least one style, you can assign it to any controls on the page.

You can also use external style sheets to provide a consistent appearance for multiple pages. An external style sheet is a StyleSheet placed in a separate .ascx (user control) file. To use an external style sheet, you must create a local StyleSheet control, and set the ReferencePath property to the path name of the .ascx file that contains the external style sheet.

public class StyleSheet : MobileControl {
// Public Constructors
   public StyleSheet( );
// Public Static Properties
   public static StyleSheet Default{get; }
// Public Instance Properties
   public override Alignment Alignment{set; get; }               // overrides MobileControl
   public override Color BackColor{set; get; }                   // overrides MobileControl
   public override bool BreakAfter{set; get; }                   // overrides MobileControl
   public override bool EnableViewState{set; get; }              // overrides System.Web.UI.Control
   public override FontInfo Font{get; }             // overrides MobileControl
   public override Color ForeColor{set; get; }                   // overrides MobileControl
   public string ReferencePath{set; get; }
   public override string StyleReference{set; get; }             // overrides MobileControl
   public ICollection Styles{get; }
   public Style this[string name]{set; get; }
   public override bool Visible{set; get; }         // overrides System.Web.UI.Control
   public override Wrapping Wrapping{set; get; }                 // overrides MobileControl
// Public Instance Methods
   public void Clear( );
   public void Remove(string name);
// Protected Instance Methods
   protected override void AddParsedSubObject(object o);        // overrides MobileControl
   protected override void LoadViewState(object savedState);    // overrides MobileControl
   protected override object SaveViewState( );       // overrides MobileControl
   protected override void TrackViewState( );        // overrides MobileControl
}

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) MobileControl(System.Web.UI.IAttributeAccessor) StyleSheet

Returned By

MobilePage.StyleSheet

Passed To

MobilePage.StyleSheet



    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