Class DxfStyleBase
Base class for differential formatting styles.
Inheritance
System.Object
DxfStyleBase
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
Properties
AllowChange
Is this value allowed to be changed?
Declaration
protected bool AllowChange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasValue
If the style has any value set
Declaration
public 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
Clear()
Reset all properties for the style.
Declaration
public abstract void Clear()
Clone()
Clone the object
Declaration
protected abstract DxfStyleBase Clone()
Returns
Type | Description |
---|---|
DxfStyleBase |
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 |
SetValue(XmlHelper, String, String)
Sets the value
Declaration
protected void SetValue(XmlHelper helper, string path, string s)
Parameters
Type | Name | Description |
---|---|---|
XmlHelper | helper | The xml helper |
System.String | path | The x path |
System.String | s |
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 |
SetValuesFromXml(XmlHelper)
Sets the values from an XmlHelper instance.
Declaration
protected virtual void SetValuesFromXml(XmlHelper helper)
Parameters
Type | Name | Description |
---|---|---|
XmlHelper | helper | The helper |