Show / Hide Table of Contents

Class ExcelDxfColor

A color in a differential formatting record

Inheritance
object
DxfStyleBase
ExcelDxfColor
Inherited Members
DxfStyleBase.SetValueColor(XmlHelper, string, ExcelDxfColor)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll
Syntax
public class ExcelDxfColor : DxfStyleBase

Properties

Auto

Gets or sets the color to automatic

Declaration
public bool? Auto { get; set; }
Property Value
Type Description
bool?

Color

Sets the color.

Declaration
public Color? Color { get; set; }
Property Value
Type Description
Color?

HasValue

If the object has any properties set

Declaration
public override bool HasValue { get; }
Property Value
Type Description
bool
Overrides
DxfStyleBase.HasValue

Index

Gets or sets an indexed color

Declaration
public int? Index { get; set; }
Property Value
Type Description
int?

Theme

Gets or sets a theme color

Declaration
public eThemeSchemeColor? Theme { get; set; }
Property Value
Type Description
eThemeSchemeColor?

Tint

Gets or sets the Tint value for the color

Declaration
public double? Tint { get; set; }
Property Value
Type Description
double?

Methods

Clear()

Clears all properties

Declaration
public override void Clear()
Overrides
DxfStyleBase.Clear()

SetAuto()

Set the color to automatic

Declaration
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.

Declaration
public void SetColor(eThemeSchemeColor color)
Parameters
Type Name Description
eThemeSchemeColor color

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.

Declaration
public void SetColor(ExcelIndexedColor color)
Parameters
Type Name Description
ExcelIndexedColor color

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.

Declaration
public void SetColor(Color color)
Parameters
Type Name Description
Color color

The color

SetColor(int, int, int, int)

Set the color of the object

Declaration
public void SetColor(int alpha, int red, int green, int blue)
Parameters
Type Name Description
int alpha

Alpha component value

int red

Red component value

int green

Green component value

int blue

Blue component value

In this article
Back to top Generated by DocFX