示例#1
0
        public void SetValueField(string FieldName)
        {
            var pft = new SLPivotFieldType();

            pft.IsNumericIndex = false;
            pft.FieldName      = FieldName;
            pft.FieldType      = SLPivotFieldTypeValues.Value;
            FieldSettingInstructions.Add(pft);
        }
示例#2
0
        public void SetValueField(int FieldIndex)
        {
            var pft = new SLPivotFieldType();

            pft.IsNumericIndex = true;
            pft.FieldIndex     = FieldIndex;
            pft.FieldType      = SLPivotFieldTypeValues.Value;
            FieldSettingInstructions.Add(pft);
        }