Show / Hide Table of Contents

Class ExcelDxfColor

A color in a differential formatting record

Inheritance
System.Object
DxfStyleBase
ExcelDxfColor
Inherited Members
DxfStyleBase.SetValuesFromXml(XmlHelper)
DxfStyleBase.SetValueColor(XmlHelper, String, ExcelDxfColor)
DxfStyleBase.SetValueEnum(XmlHelper, String, Enum)
DxfStyleBase.SetValue(XmlHelper, String, Object)
DxfStyleBase.SetValue(XmlHelper, String, String)
DxfStyleBase.SetValueBool(XmlHelper, String, Nullable<Boolean>)
DxfStyleBase.GetAsString(Object)
DxfStyleBase.AllowChange
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

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 any properties set

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

Id

The Id

Declaration
protected override string Id { get; }
Property Value
Type Description
System.String
Overrides
DxfStyleBase.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

Clear()

Clears all properties

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

Clone()

Clone the object

Declaration
protected override DxfStyleBase Clone()
Returns
Type Description
DxfStyleBase

A new instance of the object

Overrides
DxfStyleBase.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
DxfStyleBase.CreateNodes(XmlHelper, 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

Back to top Generated by DocFX