Class ExcelColorTransformCollection
- Namespace
- OfficeOpenXml.Drawing.Style.Coloring
- Assembly
- EPPlus.dll
Color transformation
public class ExcelColorTransformCollection : IEnumerable<IColorTransformItem>, IEnumerable
- Inheritance
-
ExcelColorTransformCollection
- Implements
- Inherited Members
Properties
Count
Number of items in the collection
public int Count { get; }
Property Value
this[int]
Indexer for the colletion
public IColorTransformItem this[int index] { get; }
Parameters
index
intThe position in the list
Property Value
Methods
AddAlpha(double)
The opacity as expressed by a percentage value Alpha equals 100-Transparancy
public void AddAlpha(double value)
Parameters
value
doubleThe alpha value in percentage 0-100
AddAlphaModulation(double)
Specifies a more or less opaque version of its input color Alpha equals 100-Transparancy
public void AddAlphaModulation(double value)
Parameters
value
doubleThe alpha modulation in a positive percentage
AddAlphaOffset(double)
Adds an alpha offset value.
public void AddAlphaOffset(double value)
Parameters
value
doubleThe tint percentage. From 0-100
AddBlue(double)
Specifies the input color with the specific blue component
public void AddBlue(double value)
Parameters
value
doubleThe blue value
AddBlueModulation(double)
Specifies the blue component as expressed by a percentage relative to the input color component
public void AddBlueModulation(double value)
Parameters
value
doubleThe blue modulation value
AddBlueOffset(double)
Specifies the blue component as expressed by a percentage offset increase or decrease to the input color component
public void AddBlueOffset(double value)
Parameters
value
doubleThe blue offset value.
AddComplement()
Specifies that the color rendered should be the complement of its input color with the complement being defined as such. Two colors are called complementary if, when mixed they produce a shade of grey.For instance, the complement of red which is RGB (255, 0, 0) is cyan which is RGB(0, 255, 255)
public void AddComplement()
AddGamma()
Specifies that the output color rendered by the generating application should be the sRGB gamma shift of the input color.
public void AddGamma()
AddGray()
Specifies a grayscale of its input color, taking into relative intensities of the red, green, and blue primaries.
public void AddGray()
AddGreen(double)
Specifies the input color with the specific green component
public void AddGreen(double value)
Parameters
value
doubleThe green value
AddGreenModulation(double)
Specifies the green component as expressed by a percentage relative to the input color component
public void AddGreenModulation(double value)
Parameters
value
doubleThe green modulation value
AddGreenOffset(double)
Specifies the green component as expressed by a percentage offset increase or decrease to the input color component
public void AddGreenOffset(double value)
Parameters
value
doubleThe green offset value.
AddHue(double)
Specifies the input color with the specified hue, but with its saturation and luminance unchanged
public void AddHue(double value)
Parameters
value
doubleThe hue angle from 0-360
AddHueModulation(double)
Specifies the hue as expressed by a percentage relative to the input color
public void AddHueModulation(double value)
Parameters
value
doubleThe hue modulation in a positive percentage
AddHueOffset(double)
Specifies the actual angular value of the shift. The result of the shift shall be between 0 and 360 degrees.Shifts resulting in angular values less than 0 are treated as 0. Shifts resulting in angular values greater than 360 are treated as 360.
public void AddHueOffset(double value)
Parameters
value
doubleThe hue offset value.
AddInverse()
Specifies the inverse of its input color
public void AddInverse()
AddInverseGamma()
Specifies that the output color rendered by the generating application should be the inverse sRGB gamma shift of the input color
public void AddInverseGamma()
AddLuminance(double)
Specifies the input color with the specified luminance, but with its hue and saturation unchanged
public void AddLuminance(double value)
Parameters
value
doubleThe luminance percentage from 0-100
AddLuminanceModulation(double)
Specifies the luminance as expressed by a percentage relative to the input color
public void AddLuminanceModulation(double value)
Parameters
value
doubleThe luminance modulation in a positive percentage
AddLuminanceOffset(double)
Specifies the luminance as expressed by a percentage offset increase or decrease to the input color. Increases never increase the luminance beyond 100%, decreases never decrease the saturation below 0%.
public void AddLuminanceOffset(double value)
Parameters
value
doubleThe luminance offset value
AddRed(double)
Specifies the input color with the specific red component
public void AddRed(double value)
Parameters
value
doubleThe red value
AddRedModulation(double)
Specifies the red component as expressed by a percentage relative to the input color component
public void AddRedModulation(double value)
Parameters
value
doubleThe red modulation value
AddRedOffset(double)
Specifies the red component as expressed by a percentage offset increase or decrease to the input color component
public void AddRedOffset(double value)
Parameters
value
doubleThe red offset value.
AddSaturation(double)
Specifies the input color with the specified saturation, but with its hue and luminance unchanged
public void AddSaturation(double value)
Parameters
value
doubleThe saturation percentage from 0-100
AddSaturationModulation(double)
Specifies the saturation as expressed by a percentage relative to the input color
public void AddSaturationModulation(double value)
Parameters
value
doubleThe saturation modulation in a positive percentage
AddSaturationOffset(double)
Specifies the saturation as expressed by a percentage offset increase or decrease to the input color. Increases never increase the saturation beyond 100%, decreases never decrease the saturation below 0%.
public void AddSaturationOffset(double value)
Parameters
value
doubleThe saturation offset value
AddShade(double)
Specifies a lighter version of its input color
public void AddShade(double value)
Parameters
value
doubleThe tint value in percentage 0-100
AddTint(double)
Specifies a lighter version of its input color
public void AddTint(double value)
Parameters
value
doubleThe tint value in percentage 0-100
Clear()
Clear all items
public void Clear()
GetEnumerator()
Gets the enumerator for the collection
public IEnumerator<IColorTransformItem> GetEnumerator()
Returns
- IEnumerator<IColorTransformItem>
The enumerator
Remove(IColorTransformItem)
Removes the specific item
public void Remove(IColorTransformItem item)
Parameters
item
IColorTransformItemThe item to remove
RemoveAt(int)
Remote item at a specific position
public void RemoveAt(int index)
Parameters
index
intThe postion in the list
RemoveOfType(eColorTransformType)
Remove all items of a specific type
public void RemoveOfType(eColorTransformType type)
Parameters
type
eColorTransformTypeThe transformation type