ColorFormat
Overview
ColorFormat is a class in Aspose.Slides FOSS for .NET.
Inherits from: IColorFormat.
Represents a color format used in presentation elements.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ColorType | ColorType | Read/Write | Indicates the type of color (e.g., scheme, preset, custom) |
Color | Color? | Read/Write | Holds the actual Color value when ColorType is custom |
PresetColor | PresetColor | Read/Write | Specifies a predefined color from the PresetColor enum |
SchemeColor | SchemeColor | Read/Write | Specifies a color from the slide’s color scheme |
R | int | Read/Write | Returns the red component (0-255) of the color |
G | int | Read/Write | Returns the green component (0-255) of the color |
B | int | Read/Write | Returns the blue component (0-255) of the color |
FloatR | float | Read/Write | Returns the red component as a float (0.0-1.0) |
FloatG | float | Read/Write | Returns the green component as a float (0.0-1.0) |
FloatB | float | Read/Write | Returns the blue component as a float (0.0-1.0) |
Hue | float | Read/Write | Returns the hue angle (0-360) of the color in HSL |
Saturation | float | Read/Write | Returns the saturation (0-1) of the color in HSL |
Luminance | float | Read/Write |