Visual Basic (Declaration) | |
---|---|
Public ReadOnly Default Property Item( _ ByVal index As Integer _ ) As CaptureSize |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CaptureSizes Dim index As Integer Dim value As CaptureSize value = instance.Item(index) |
C# | |
---|---|
public CaptureSize this( int index ) {get;} |
C++/CLI | |
---|---|
public: property CaptureSize^ default [int] { CaptureSize^ get(int index); } |
Parameters
- index
- The zero-based index of the item to get.
Property Value
The CaptureSize item at the specified index.Exception | Description |
---|---|
System.ArgumentOutOfRangeException |
This property provides the ability to access a specific item in the collection by using the following syntax: myCollection[index]. The C# language uses this keyword to define the indexers instead of implementing the Item property. Visual Basic implements Item as a default property, which provides the same indexing functionality.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7