Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointLayoutKpi

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

A formatted metric, label and optional change.

Inheritance

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 required
label string required
change string? = null optional
color OfficeIMO.OfficeColor? = null optional

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 required
Formatted metric value.
label string required
Metric label.
delta double required
Numeric change; with the percent unit, a fraction such as 0.12 means 12%.
unit string? = null optional
Optional unit, such as %, pt or ms.
goodDirection OfficeIMO.PowerPoint.PowerPointKpiDirection = Up optional
Direction counted as an improvement.
color OfficeIMO.OfficeColor? = null optional
Explicit indicator colour overriding semantic colour selection.

Properties

public string Value { get; } #

Formatted metric value.

public string Label { get; } #

Metric label.

public string? Change { get; } #

Optional formatted change.

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.