NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CssStyleCollection.Item

Gets or sets a specified CSS value.

[C#] In C#, this member is the indexer for the CssStyleCollection class.

[Visual Basic]
Overridable Public Default Property Item( _
   ByVal key As String _
) As String
[C#]
public string this[
   string key
] {virtual get; virtual set;}
[C++]
public: __property virtual String* get_Item(
   String* key
);
public: __property virtual void set_Item(
   String* key,
   String*
);
[JScript]
returnValue = CssStyleCollectionObject.Item(key);
CssStyleCollectionObject.Item(key) = returnValue;
-or-
returnValue = CssStyleCollectionObject(key);
CssStyleCollectionObject(key) = returnValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

key
The index to the CSS attribute.

Parameters [Visual Basic, C#, C++]

key
The index to the CSS attribute.

Property Value

The selected CSS attribute.

See Also

CssStyleCollection Class | CssStyleCollection Members | System.Web.UI Namespace