Table of Contents

Class ExcelDxfColor

Namespace
OfficeOpenXml.Style.Dxf
Assembly
EPPlus.dll

A color in a differential formatting record

public class ExcelDxfColor : DxfStyleBase
Inheritance
ExcelDxfColor
Inherited Members

Properties

Auto

Gets or sets the color to automatic

public bool? Auto { get; set; }

Property Value

bool?

Color

Sets the color.

public Color? Color { get; set; }

Property Value

Color?

HasValue

If the object has any properties set

public override bool HasValue { get; }

Property Value

bool

Index

Gets or sets an indexed color

public int? Index { get; set; }

Property Value

int?

Theme

Gets or sets a theme color

public eThemeSchemeColor? Theme { get; set; }

Property Value

eThemeSchemeColor?

Tint

Gets or sets the Tint value for the color

public double? Tint { get; set; }

Property Value

double?

Methods

Clear()

Clears all properties

public override void Clear()

SetAuto()

Set the color to automatic

public void SetAuto()

SetColor(eThemeSchemeColor)

Set the color of the drawing based on an eThemeSchemeColor color. This method will remove any previous Color, IndexedColor or Automatic color used.

public void SetColor(eThemeSchemeColor color)

Parameters

color eThemeSchemeColor

The color

SetColor(ExcelIndexedColor)

Set the color of the drawing based on an ExcelIndexedColor color. This method will remove any previous Color, ThemeSchemeColor or Automatic color used.

public void SetColor(ExcelIndexedColor color)

Parameters

color ExcelIndexedColor

The color

SetColor(Color)

Set the color of the drawing based on an RGB color. This method will remove any previous ThemeSchemeColor, IndexedColor or Automatic color used.

public void SetColor(Color color)

Parameters

color Color

The color

SetColor(int, int, int, int)

Set the color of the object

public void SetColor(int alpha, int red, int green, int blue)

Parameters

alpha int

Alpha component value

red int

Red component value

green int

Green component value

blue int

Blue component value