FlexReport for WinForms
Add(String,String,Rect) メソッド


C1.Report アセンブリ > C1.Report 名前空間 > FieldCollection クラス > Add メソッド : Add(String,String,Rect) メソッド
Contains the name of the new field. You should use a consistent naming scheme for the fields and avoid using duplicate names for report fields and database fields. Using repeated names is legal but will cause VBScript expressions that use repeated field names to yield unexpected results.
Contains the value for the new field's Text property. This value may be treated as a literal or as a VBScript expression, depending on the setting of the field's Calculated property. By default, Calculated is set to false and the text is rendered as-is.
Defines the position of the field, in twips, with respect to its containing section.
Adds a Field to the collection.
シンタックス
'宣言
 
Public Overloads Function Add( _
   ByVal name As System.String, _
   ByVal text As System.String, _
   ByVal rc As Rect _
) As Field
'使用法
 
Dim instance As FieldCollection
Dim name As System.String
Dim text As System.String
Dim rc As Rect
Dim value As Field
 
value = instance.Add(name, text, rc)
public Field Add( 
   System.string name,
   System.string text,
   Rect rc
)

パラメータ

name
Contains the name of the new field. You should use a consistent naming scheme for the fields and avoid using duplicate names for report fields and database fields. Using repeated names is legal but will cause VBScript expressions that use repeated field names to yield unexpected results.
text
Contains the value for the new field's Text property. This value may be treated as a literal or as a VBScript expression, depending on the setting of the field's Calculated property. By default, Calculated is set to false and the text is rendered as-is.
rc
Defines the position of the field, in twips, with respect to its containing section.

戻り値の型

A reference to the newly added field.
解説

If you add a field to a section's Section.Fields collection, the new field is automatically assigned to that section.

If you add a field to the control's FlexReport.Fields collection, the new field is not assigned to any sections. In this case, you must set the field's Section property or it will not be rendered in the report.

参照

参照

FieldCollection クラス
FieldCollection メンバ
オーバーロード一覧