public void SetValueField(string FieldName) { var pft = new SLPivotFieldType(); pft.IsNumericIndex = false; pft.FieldName = FieldName; pft.FieldType = SLPivotFieldTypeValues.Value; FieldSettingInstructions.Add(pft); }
public void SetValueField(int FieldIndex) { var pft = new SLPivotFieldType(); pft.IsNumericIndex = true; pft.FieldIndex = FieldIndex; pft.FieldType = SLPivotFieldTypeValues.Value; FieldSettingInstructions.Add(pft); }