/// <summary> /// Set value field /// </summary> /// <param name="FieldName"></param> public void SetValueField(string FieldName) { SLPivotFieldType pft = new SLPivotFieldType(); pft.IsNumericIndex = false; pft.FieldName = FieldName; pft.FieldType = SLPivotFieldTypeValues.Value; this.FieldSettingInstructions.Add(pft); }
/// <summary> /// Set row filed /// </summary> /// <param name="FieldIndex"></param> public void SetValueField(int FieldIndex) { SLPivotFieldType pft = new SLPivotFieldType(); pft.IsNumericIndex = true; pft.FieldIndex = FieldIndex; pft.FieldType = SLPivotFieldTypeValues.Value; this.FieldSettingInstructions.Add(pft); }