Overload List

Name Description
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" } )

See Also