Style Members

Organizes style characteristics of an ASP.NET mobile control.

The following tables list the members exposed by the Style type.

  Name Description
Public method Style Initializes a new instance of the Style class.
Top

  Name Description
Public field Static AlignmentKey Represents the key used to retrieve the Alignment setting of the Style.
Public field Static BackColorKey The key for retrieving the style from the embedded style sheet for BackColor property. Used internally by ASP.NET.
Public field Static BoldKey The key for retrieving the style from the embedded style sheet for setting the Bold property of the Font. Used internally by ASP.NET.
Public field Static FontNameKey The key for retrieving the style from the embedded style sheet for the Name property of the Font property. Used internally by ASP.NET.
Public field Static FontSizeKey The key for retrieving the style from the embedded style sheet for the Size property of the Font property. Used internally by ASP.NET.
Public field Static ForeColorKey The key for retrieving the style from the embedded style sheet for the ForeColor property. Used internally by ASP.NET.
Public field Static ItalicKey The key for retrieving the style from the embedded style sheet for the Italic property of the Font property. Used internally by ASP.NET.
Public field Static WrappingKey The key for retrieving the style from the embedded style sheet for Wrapping. Used internally by ASP.NET.
Top

(see also Protected Properties )
  Name Description
Public property Alignment Gets or sets the specified alignment for the style. The default value is Alignment.NotSet.
Public property BackColor Gets or sets the specified background color for the style. The default value is Color.Empty.
Public property Control Returns a strongly typed reference to the associated control.
Public property DeviceSpecific Gets or sets the DeviceSpecific/Choice construct associated with the control. The accessor returns a null reference (Nothing in Visual Basic) if no such construct exists.
Public property Font Returns a FontInfo object that contains font information about the control.
Public property ForeColor Gets or sets the specified foreground color for the style. Typically, this property sets the color for the text. The default value is Empty.
Public property IsTemplated Gets a value indicating whether a Style object has an active template set.
Public property Item Overloaded. Returns the style through the key parameter, with or without using inheritance.
Public property Name Gets or sets the name of the specified object. The default value is an empty string ("").
Public property StyleReference Gets or sets a reference to the style properties for a Style.
Public property Wrapping Gets or sets the specified wrapping mode for the style. The default value is NotSet.
Top

  Name Description
Protected property IsTrackingViewState Gets a value indicating whether the Style object is saving changes to its view state.
Protected property State Gets the current contents of the StateBag.
Top

(see also Protected Methods )
  Name Description
Public method ApplyTo Applies the properties of a style to a control.
Public method Clone Returns a copy of this instance of the Style object.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetTemplate Returns the template with the specified name.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RegisterStyle Registers a style property and returns a unique key for lookup.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method AddParsedSubObject Sets the DeviceSpecific property to the specified object.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method LoadViewState Loads the view state into the State of the Style object.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method SaveViewState Saves the changes to the view state to an Object.
Protected method TrackViewState Turns on the tracking of view state in the Style object.
Top

Community Additions

ADD
Show: