Interface IColorField
Namespace: IronPPT.Interfaces
Assembly: IronPPT.dll
Syntax
public interface IColorField : IBaseColorField
IColorField is the contract for a single color channel inside a presentation color, the kind of value a developer reads or sets when adjusting one component of red, green, or blue. It adds a Value property typed as a byte, the 0 to 255 intensity of that one channel, on top of the base color-field contract it extends. Coding against the contract keeps channel handling uniform whether the field came from an RGB color or an alpha component.
The concrete implementor in IronPPT is ColorField, which is what the R, G, B, and A properties of a color return. A developer usually reaches a field through one of those properties on an IColor rather than constructing it, then reads or assigns Value to change that single channel. Working with the field directly is useful when you want to nudge one component without rebuilding the whole color.
IColorField red = color.R;
red.Value = 0xC0;The paragraph style example applies color while styling text, and the add shape example sets fill colors built from these channels.
Properties
Value
Declaration
byte Value { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Byte |