FlexReport for WinForms
Name プロパティ (FieldBase)
使用例 


C1.Report アセンブリ > C1.Report 名前空間 > FieldBase クラス : Name プロパティ
Gets or sets the field name.
シンタックス
'宣言
 
Public Overrides Property Name As System.String
'使用法
 
Dim instance As FieldBase
Dim value As System.String
 
instance.Name = value
 
value = instance.Name
public override System.string Name {get; set;}
解説

The field name can be used as an index into the control's FlexReport.Fields collection.

Field names are also used to identify fields in VBScript expressions, as shown in the example below.

Duplicate and empty field names are allowed, but should be avoided if you plan to use the field names in scripts or as indexers.

使用例
The code below assigns a script to the report's SectionTypeEnum.Detail section. The script changes a field's ForeColor property depending on a value.
_c1r.Sections.Fields["sampleField"].ForeColor = Color.Black;
_c1r.Sections.Detail.OnFormat = 
    "sampleField.ForeColor = iif(someValue < 5, vbRed, vbBlack)";
参照

参照

FieldBase クラス
FieldBase メンバ