This documentation is archived and is not being maintained.

Style Class

Organizes style characteristics of an ASP.NET mobile control.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[TypeConverterAttribute(typeof(ExpandableObjectConverter))] 
public ref class Style : IParserAccessor, ITemplateable, IStateManager, 
	ICloneable
/** @attribute TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) */ 
public class Style implements IParserAccessor, ITemplateable, 
	IStateManager, ICloneable
TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) 
public class Style implements IParserAccessor, ITemplateable, 
	IStateManager, ICloneable
Not applicable.

The base Style class contains style characteristics common to all mobile controls. Classes that inherit from the Style class contain additional style characteristics specific to their associated control.

Due to the diversity of devices supported by mobile controls, all style properties are advisory, and might or might not be honored depending on the capabilities of the target device.

TopicLocation
Walkthrough: Implementing a New StyleMobile Application Reference
Walkthrough: Implementing a New StyleMobile Application Reference
Walkthrough: Implementing a New StyleMobile Application Reference

The following example demonstrates three user-defined styles in a StyleSheet object. A SelectionList object holds three values that correspond to the three defined styles. The OnClick command event calls the SelectStyle function, which changes the StyleReference property of the TextView object.

No code example is currently available or this language may not be supported.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.

System.Object
  System.Web.UI.MobileControls.Style
     System.Web.UI.MobileControls.PagerStyle

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1
Show: