Share via


Switcher.WidgetsCollection.Item Property

Gets or sets the element at the specified index.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As IWidget
    Get
    Set
'Usage
Dim instance As Switcher..::..WidgetsCollection
Dim index As Integer
Dim value As IWidget

value = instance(index)

instance(index) = value
public IWidget this[
    int index
] { get; set; }
public:
virtual property IWidget^ default[int index] {
    IWidget^ get (int index) sealed;
    void set (int index, IWidget^ value) sealed;
}
abstract Item : IWidget with get, set
override Item : IWidget with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • index
    Type: System.Int32
    The zero-based index of the element to get or set.

Property Value

Type: Microsoft.SqlServer.Management.Controls.IWidget
The element at the specified index

Implements

IList<T>.Item[Int32]