ParameterFields.Item Property (Integer)

Gets the object at the specified index. In C#, this property is the indexer for the ParameterField class.

Namespace CrystalDecisions.Shared Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Syntax

'Declaration

Public New ReadOnly Property Item ( _
    ByVal index As Integer _    
) As CrystalDecisions.Shared.ParameterField
public new CrystalDecisions.Shared.ParameterField this [
    int index
]{get;}

Parameters

  • index

Property Value

The value in the collection at the specified index.

Remarks

This property allows you to access a specific item in the collection. The item is referenced using a numeric, zero-based index.

The property name Item does not exist for C#. To access an item in a collection using C#, use the syntax: collection[0].

Example

This example shows how to get the parameter field with the specified index.

'Declaration

    Private Function GetParameterFieldByIndex(ByVal myParameterFields As ParameterFields, _
        ByVal myIndex As Integer) As ParameterField
      GetParameterFieldByIndex = myParameterFields.Item(myIndex)
    End Function
    private ParameterField GetParameterFieldByIndex(ParameterFields parameterFields, int index)
    {
      return parameterFields[index];
    }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ParameterFields Class
ParameterFields Members
CrystalDecisions.Shared Namespace