Description
ItemsToRetain's value for automatic.
C#
vb.net
Remarks
SettingPivotTableSettings.ItemsToRetain
to ItemsToRetain.Automatic
is the same as going to PivotTable Options > Data > Retain items deleted from the data source and setting Number of items to retain per field to Automatic.