对于Delphi的AddFieldTo
组件,FastCube 2
是什么类似的?我们之前使用过以下代码:
TfcxSlice.AddFieldTo(FieldName, Caption, rf_CapXAx);
问题是由新的TfcxCommonFieldsOfRegion
类引起的:
private
procedure Delete(AIndex: TfcxSmallCount);
function Add(AField: TfcxCommonFieldOfRegion): TfcxSmallCount;
procedure Insert(AField: TfcxCommonFieldOfRegion; AIndex: TfcxSmallCount);
因此,没有严格的方法来更改TfcxCommonFieldsOfRegion
对象。
答案 0 :(得分:1)
新代码:
XAxisContainer.AddDimension(TfcxSliceField, FieldName, Caption);