Show / Hide Table of Contents

Class DxfStyleBase<T>

Base class for differential formatting styles.

Inheritance
System.Object
DxfStyleBase<T>
ExcelDxfBorderBase
ExcelDxfBorderItem
ExcelDxfColor
ExcelDxfFill
ExcelDxfFontBase
ExcelDxfNumberFormat
ExcelDxfStyleConditionalFormatting
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 abstract class DxfStyleBase<T>
Type Parameters
Name Description
T

Properties

AllowChange

Is this value allowed to be changed?

Declaration
protected bool AllowChange { get; set; }
Property Value
Type Description
System.Boolean

HasValue

If the dfx has a value

Declaration
protected abstract bool HasValue { get; }
Property Value
Type Description
System.Boolean

Id

The id

Declaration
protected abstract string Id { get; }
Property Value
Type Description
System.String

Methods

Clone()

Clone the object

Declaration
protected abstract T Clone()
Returns
Type Description
T

CreateNodes(XmlHelper, String)

Create the nodes

Declaration
protected abstract void CreateNodes(XmlHelper helper, string path)
Parameters
Type Name Description
XmlHelper helper

The xml helper

System.String path

The Xpath

GetAsString(Object)

Declaration
protected string GetAsString(object v)
Parameters
Type Name Description
System.Object v
Returns
Type Description
System.String

SetValue(XmlHelper, String, Object)

Sets the value

Declaration
protected void SetValue(XmlHelper helper, string path, object v)
Parameters
Type Name Description
XmlHelper helper

The xml helper

System.String path

The x path

System.Object v

The object

SetValueBool(XmlHelper, String, Nullable<Boolean>)

Sets the value

Declaration
protected void SetValueBool(XmlHelper helper, string path, bool? v)
Parameters
Type Name Description
XmlHelper helper

The xml helper

System.String path

The x path

System.Nullable<System.Boolean> v

The boolean value

SetValueColor(XmlHelper, String, ExcelDxfColor)

Set the color value

Declaration
protected void SetValueColor(XmlHelper helper, string path, ExcelDxfColor color)
Parameters
Type Name Description
XmlHelper helper

The xml helper

System.String path

The x path

ExcelDxfColor color

The color

SetValueEnum(XmlHelper, String, Enum)

Same as SetValue but will set first char to lower case.

Declaration
protected void SetValueEnum(XmlHelper helper, string path, Enum v)
Parameters
Type Name Description
XmlHelper helper

The xml helper

System.String path

The Xpath

System.Enum v

The value

Back to top Generated by DocFX