Class Saturation
Namespace: IronPPT.Models
Assembly: IronPPT.dll
Syntax
public class Saturation : BaseColorField, ISaturation, IBaseColorField
Adjusting how vivid a theme color appears on a slide runs through Saturation. It holds the saturation component of a color transform, so a developer who wants a brand color to read richer or more muted sets it once and lets IronPPT apply the shift wherever that color is used.
A Saturation is assigned wherever a color field expects a saturation adjustment, and it reads naturally from a plain number because a static implicit operator Saturation(double value) converts a double straight into one. Its Value property is an IPercentage that expresses the saturation level, while the inherited Modulation and Offset properties (also IPercentage, from BaseColorField) scale and shift that level for finer control. Because the implicit conversion exists, assigning 0.8 is equivalent to building the object by hand, which keeps color-tuning code short.
Saturation saturation = 0.8;The add shape example sets shape colors, and the paragraph style example styles text color.
Constructors
Saturation()
Declaration
public Saturation()
Properties
Value
Declaration
public IPercentage Value { get; set; }
Property Value
| Type | Description |
|---|---|
| IPercentage |
Operators
Implicit(Double to Saturation)
Declaration
public static implicit operator Saturation(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type | Description |
|---|---|
| Saturation |