ColorFormat

Overview

ColorFormat is a class in Aspose.Slides FOSS for .NET. Inherits from: IColorFormat.

Represents a color format used in presentation elements.

Properties

NameTypeAccessDescription
ColorTypeColorTypeRead/WriteIndicates the type of color (e.g., scheme, preset, custom)
ColorColor?Read/WriteHolds the actual Color value when ColorType is custom
PresetColorPresetColorRead/WriteSpecifies a predefined color from the PresetColor enum
SchemeColorSchemeColorRead/WriteSpecifies a color from the slide’s color scheme
RintRead/WriteReturns the red component (0-255) of the color
GintRead/WriteReturns the green component (0-255) of the color
BintRead/WriteReturns the blue component (0-255) of the color
FloatRfloatRead/WriteReturns the red component as a float (0.0-1.0)
FloatGfloatRead/WriteReturns the green component as a float (0.0-1.0)
FloatBfloatRead/WriteReturns the blue component as a float (0.0-1.0)
HuefloatRead/WriteReturns the hue angle (0-360) of the color in HSL
SaturationfloatRead/WriteReturns the saturation (0-1) of the color in HSL
LuminancefloatRead/Write

See Also