Esempio n. 1
0
        public IXLPivotField Add(String sourceName, String customName)
        {
            var pivotField = new XLPivotField(sourceName)
            {
                CustomName = customName
            };

            _pivotFields.Add(sourceName, pivotField);
            return(pivotField);
        }
Esempio n. 2
0
        public IXLPivotField Add(String sourceName, String customName)
        {
            if (sourceName != XLConstants.PivotTableValuesSentinalLabel && !this._pivotTable.SourceRangeFieldsAvailable.Contains(sourceName, StringComparer.OrdinalIgnoreCase))
            {
                throw new ArgumentOutOfRangeException(nameof(sourceName), String.Format("The column '{0}' does not appear in the source range.", sourceName));
            }

            var pivotField = new XLPivotField(sourceName)
            {
                CustomName = customName
            };

            _pivotFields.Add(sourceName, pivotField);
            return(pivotField);
        }
Esempio n. 3
0
 public IXLPivotField Add(String sourceName, String customName)
 {
     var pivotField = new XLPivotField(sourceName) {CustomName = customName};
     _pivotFields.Add(sourceName, pivotField);
     return pivotField;
 }