Back to Devexpress

PivotGridControl.GetKpiBitmap(PivotKpiGraphic, Int32) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-getkpibitmap-x28-devexpress-dot-xpf-dot-pivotgrid-dot-pivotkpigraphic-system-dot-int32-x29.md

latest2.3 KB
Original Source

PivotGridControl.GetKpiBitmap(PivotKpiGraphic, Int32) Method

Returns an image that corresponds to a specific KPI value.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public ImageSource GetKpiBitmap(
    PivotKpiGraphic graphic,
    int state
)
vb
Public Function GetKpiBitmap(
    graphic As PivotKpiGraphic,
    state As Integer
) As ImageSource

Parameters

NameTypeDescription
graphicPivotKpiGraphic

A PivotKpiGraphic enumeration value that specifies the KPI graphic set.

| | state | Int32 |

An integer value that specifies the KPI value (-1, 0 or 1).

|

Returns

TypeDescription
ImageSource

A Bitmap object that corresponds to the specified KPI value.

|

Remarks

Since KPI supports graphic representation for its Status and Trend values, these values can be replaced with images. OLAP supports a number of graphic sets such as shapes, smiley faces, traffic lights, etc. To specify the graphic set a field, use the PivotGridField.KpiGraphic property. Individual KPI images can be obtained via the GetKpiBitmap method.

To learn more, see Key Performance Indicators (KPIs).

See Also

KpiGraphic

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace