共用方式為


ParameterField 類別

提供擷取和設定選項以及參數欄位值的屬性。

如需這個類型所有成員的清單,請參閱 ParameterField 成員

Object

   ParameterField

[Visual Basic]

Public Class ParameterField

[C#]

public class ParameterField

[C++]

__gc public class ParameterField

[VJ#]

public class ParameterField

範例

這個範例說明如何依照參數名稱從 ParameterInfo 集合傳回 ParameterField 物件。

[Visual Basic]

Private Function GetParameterField(ByVal paramName As String) _ As ParameterField

   Dim paramField As New ParameterField()
   paramField = _ CrystalReportViewer1.ParameterFieldInfo.Item(paramName)
   GetParameterField = paramField
End Function

[C#]

private ParameterField GetParameterField (string paramName)
{
   ParameterField paramField = new ParameterField ();
   paramField = crystalReportViewer1.ParameterFieldInfo 
   [paramName];
   return paramField;
}

[C++]

static ParameterField* GetParameterField (String* paramName)
{
   ParameterField* paramField = new ParameterField ();
   paramField = crystalReportViewer1->ParameterFieldInfo->Item 
   [paramName];
   return paramField;
};

[VJ#]

private ParameterField GetParameterField (String paramName)
{
   ParameterField paramField = new ParameterField ();
   paramField = crystalReportViewer1.get_ParameterFieldInfo().get_Item 
   (paramName);
   return paramField;
}

需求

命名空間:CrystalDecisions.Shared

**平台:**Windows 98、Windows NT 4.0、Windows Millennium Edition、Windows 2000

**組件:**CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

請參閱

ParameterField 成員 | CrystalDecisions.Shared 命名空間