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.
The selected CSS attribute.
CssStyleCollection Class | CssStyleCollection Members | System.Web.UI Namespace