A list of style attributes.

Namespace: Jaxcent.Web.Html
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class StylesList
Public Class StylesList
public ref class StylesList

Members

         
 All Members  Constructors   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
StylesList()()()()
Use this empty constructor when no styles are to be applied. (E.g., if alternative rows have style/no-style, specify empty StylesList for style-2.)
StylesList(String)
Constructor to create an StylesList object from a class-name or a correctly formed style string consisting of style-name: style-value pairs, separated by semicolon characters, e.g.

CopyC#
new StylesList( "EvenRowStyleClass" )
or
CopyC#
new StylesList( "background-color:yellow; color:red" )

If the string does not contain any : characters, it is assumed to be a class name.

StylesList(array<String>[]()[][], array<String>[]()[][])
Constructor to create an StylesList object from an array of style-names, and a matching array of style values. The length of the two arrays must be the same. E.g.

CopyC#
new StylesList( new string[]{ "background-color", "color" }, new string[]{ "yellow", "red" } )
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)

Inheritance Hierarchy

System..::..Object
  Jaxcent.Web.Html..::..StylesList

See Also