Class
PowerPointLayoutKpi
OfficeIMO.PowerPoint
A formatted metric, label and optional change.
Inheritance
- PowerPointLayoutBlock
- PowerPointLayoutKpi
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Constructors
public PowerPointLayoutKpi(string value, string label, string? change = null, OfficeColor? color = null) #Creates content for the shared layout engine.
Parameters
- value string
- label string
- change string? = null
- color OfficeIMO.OfficeColor? = null
Methods
public static PowerPointLayoutKpi FromDelta(string value, string label, double delta, string? unit = null, PowerPointKpiDirection goodDirection = Up, OfficeColor? color = null) #Creates a metric with an invariant numeric change rounded to two decimal places and its direction.
Parameters
- value string
- Formatted metric value.
- label string
- Metric label.
- delta double
- Numeric change; with the percent unit, a fraction such as 0.12 means 12%.
- unit string? = null
- Optional unit, such as %, pt or ms.
- goodDirection OfficeIMO.PowerPoint.PowerPointKpiDirection = Up
- Direction counted as an improvement.
- color OfficeIMO.OfficeColor? = null
- Explicit indicator colour overriding semantic colour selection.
Returns
PowerPointLayoutKpiInherited Methods
Properties
public OfficeColor? Color { get; } #Explicit indicator colour; otherwise the trend and good direction choose a semantic colour.
public PowerPointKpiTrend? Trend { get; set; } #Explicit change direction; omission infers it from a leading plus or minus in Change.
public PowerPointKpiDirection GoodDirection { get; set; } #The direction counted as an improvement; higher is better by default.