Class ColorField
Namespace: IronPPT.Models
Assembly: IronPPT.dll
Syntax
public class ColorField : BaseColorField, IColorField, IBaseColorField
ColorField holds a single color channel in IronPPT, the red, green, blue, or alpha component you read or set when working with a Color. A Color exposes its R, G, and B channels as ColorField objects, so this is the type you touch to inspect or change one component without rebuilding the whole color.
The own property is Value, a byte from 0 to 255 that holds the channel intensity. From its base BaseColorField, a ColorField also carries Modulation and Offset, both IPercentage, for scaling or shifting the channel relatively rather than setting an absolute number. For most code, assign Value directly; reach for the inherited modulation and offset only when a theme color needs a proportional tweak. Construct one with new ColorField() or, more commonly, read it back from a Color's channel properties.
The paragraph style example applies colored styling, and the add text how-to covers text formatting.
Constructors
ColorField()
Declaration
public ColorField()
Properties
Value
Declaration
public byte Value { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
Operators
Implicit(Byte to ColorField)
Declaration
public static implicit operator ColorField(byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | value |
Returns
| Type | Description |
|---|---|
| ColorField |