[]
Creates a command that filters the specified field to display only the items selected in the given range.
public static Command KeepOnlySelectedItems(IPivotTable pivotTable, int fieldIndex, IRange range)
Public Shared Function KeepOnlySelectedItems(pivotTable As IPivotTable, fieldIndex As Integer, range As IRange) As Command
| Type | Name | Description |
|---|---|---|
| IPivotTable | pivotTable | The IPivotTable instance. |
| int | fieldIndex | The index of the IPivotField to apply the filter to. |
| IRange | range | The IRange containing the selected items. |
| Type | Description |
|---|---|
| Command | A Command that keeps only the selected items visible for the specified field. |