Class ExcelDxfGradientFillColorCollection
A collection of colors and their positions used for a gradiant fill.
Implements
System.Collections.Generic.IEnumerable<ExcelDxfGradientFillColor>
System.Collections.IEnumerable
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 ExcelDxfGradientFillColorCollection : DxfStyleBase, IEnumerable<ExcelDxfGradientFillColor>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HasValue
If the style has any value set
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Id
Declaration
protected override string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Item[Double]
Gets the first occurance with the color with the specified position
Declaration
public ExcelDxfGradientFillColor this[double position] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | The position in percentage |
Property Value
Type | Description |
---|---|
ExcelDxfGradientFillColor | The color |
Item[Int32]
Indexer for the collection
Declaration
public ExcelDxfGradientFillColor this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index in the collection |
Property Value
Type | Description |
---|---|
ExcelDxfGradientFillColor | The color |
Methods
Add(Double)
Adds a RGB color at the specified position
Declaration
public ExcelDxfGradientFillColor Add(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | The position from 0 to 100% |
Returns
Type | Description |
---|---|
ExcelDxfGradientFillColor | The gradient color position object |
Clear()
Clear all style items from the collection
Declaration
public override void Clear()
Overrides
Clone()
Declaration
protected override DxfStyleBase Clone()
Returns
Type | Description |
---|---|
DxfStyleBase |
Overrides
CreateNodes(XmlHelper, String)
Declaration
protected override void CreateNodes(XmlHelper helper, string path)
Parameters
Type | Name | Description |
---|---|---|
XmlHelper | helper | |
System.String | path |
Overrides
GetEnumerator()
Get the enumerator
Declaration
public IEnumerator<ExcelDxfGradientFillColor> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ExcelDxfGradientFillColor> | The enumerator |
Remove(ExcelDxfGradientFillColor)
Remove the style from the collection
Declaration
public void Remove(ExcelDxfGradientFillColor item)
Parameters
Type | Name | Description |
---|---|---|
ExcelDxfGradientFillColor | item |
RemoveAt(Double)
Remove the style at the position from the collection.
Declaration
public void RemoveAt(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position |
RemoveAt(Int32)
Remove the style at the index in the collection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Get the enumerator
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | The enumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable