Aspose::Cells::Pivot::PivotField::Top10AutoShow method

PivotField::Top10AutoShow method

Configures Top10 AutoShow settings for this pivot field.

void Aspose::Cells::Pivot::PivotField::Top10AutoShow(bool isAutoShow, bool isTop, int32_t count, int32_t rankBy)
ParameterTypeDescription
isAutoShowbooltrue to enable AutoShow; false to disable.
isTopboolIf true, shows top items; false shows bottom items.
countint32_tNumber of top/bottom items to display.
rankByint32_tIndex of data field used for ranking. Use -1 to rank by pivot item’s own values.

Remarks

This method configures the PivotFieldTop10AutoShowSettings.

XLS binary format: AutoShow (Top10) is the native and only supported option.

XLSX (OpenXML): The underlying file format supports Top10 AutoShow, but Excel 2007 and later user interface only exposes this via Top10 filter. If XLS compatibility is not required, it is recommended to use Top10 filter instead.

See Also