Class ExcelDxfColor
A color in a differential formatting record
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll
Syntax
public class ExcelDxfColor : DxfStyleBase<ExcelDxfColor>
  Properties
Auto
Gets or sets the color to automativ
Declaration
public bool? Auto { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Boolean> | 
Color
Sets the color.
Declaration
public Color? Color { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Drawing.Color> | 
HasValue
If the object has a value
Declaration
protected override bool HasValue { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
OfficeOpenXml.Style.Dxf.DxfStyleBase<OfficeOpenXml.Style.Dxf.ExcelDxfColor>.HasValue
  
  Id
The Id
Declaration
protected override string Id { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Overrides
OfficeOpenXml.Style.Dxf.DxfStyleBase<OfficeOpenXml.Style.Dxf.ExcelDxfColor>.Id
  
  Index
Gets or sets an indexed color
Declaration
public int? Index { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Int32> | 
Theme
Gets or sets a theme color
Declaration
public eThemeSchemeColor? Theme { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<eThemeSchemeColor> | 
Tint
Gets or sets the Tint value for the color
Declaration
public double? Tint { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Double> | 
Methods
Clone()
Clone the object
Declaration
protected override ExcelDxfColor Clone()
  Returns
| Type | Description | 
|---|---|
| ExcelDxfColor | A new instance of the object  | 
      
Overrides
OfficeOpenXml.Style.Dxf.DxfStyleBase<OfficeOpenXml.Style.Dxf.ExcelDxfColor>.Clone()
  
  CreateNodes(XmlHelper, String)
Creates the the xml node
Declaration
protected override void CreateNodes(XmlHelper helper, string path)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlHelper | helper | The xml helper  | 
      
| System.String | path | The X Path  | 
      
Overrides
OfficeOpenXml.Style.Dxf.DxfStyleBase<OfficeOpenXml.Style.Dxf.ExcelDxfColor>.CreateNodes(OfficeOpenXml.XmlHelper, System.String)
  
  SetAuto()
Set the color to automatic
Declaration
public void SetAuto()
  SetColor(eThemeSchemeColor)
Set the color of the drawing
Declaration
public void SetColor(eThemeSchemeColor color)
  Parameters
| Type | Name | Description | 
|---|---|---|
| eThemeSchemeColor | color | The color  | 
      
SetColor(ExcelIndexedColor)
Set the color of the drawing
Declaration
public void SetColor(ExcelIndexedColor color)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ExcelIndexedColor | color | The color  | 
      
SetColor(Color)
Set the color of the drawing
Declaration
public void SetColor(Color color)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Color | color | The color  |