NanoXLSX.Writer 3.0.0-rc.3
Loading...
Searching...
No Matches
NanoXLSX.Interfaces.Writer.IColorWriter Interface Reference

Interface, used by specific writers that provides color handling. More...

Public Member Functions

string GetAttributeName (Color color)
 Gets the attribute name for the given color instance.
string GetAttributeValue (Color color)
 Gets the attribute value for the given color instance.
bool UseTintAttribute (Color color)
 Gets whether a tint value is used for the given color instance.
string GetTintAttributeValue (Color color)
 Gets the tint value as string of the given color instance, if applicable (see UseTintAttribute(Color)).
IEnumerable< XmlAttribute > GetAttributes (Color color)
 Gets all applicable attributes of the given color instance.

Detailed Description

Interface, used by specific writers that provides color handling.

Definition at line 17 of file IColorWriter.cs.

Member Function Documentation

◆ GetAttributeName()

string NanoXLSX.Interfaces.Writer.IColorWriter.GetAttributeName ( Color color)

Gets the attribute name for the given color instance.

Parameters
colorColor instance
Returns
Attribute name

◆ GetAttributes()

IEnumerable< XmlAttribute > NanoXLSX.Interfaces.Writer.IColorWriter.GetAttributes ( Color color)

Gets all applicable attributes of the given color instance.

Parameters
colorColor instance
Returns
IEnumerable of the applicable XmlAttribute values of the color

◆ GetAttributeValue()

string NanoXLSX.Interfaces.Writer.IColorWriter.GetAttributeValue ( Color color)

Gets the attribute value for the given color instance.

Parameters
colorColor instance
Returns
Attribute value

◆ GetTintAttributeValue()

string NanoXLSX.Interfaces.Writer.IColorWriter.GetTintAttributeValue ( Color color)

Gets the tint value as string of the given color instance, if applicable (see UseTintAttribute(Color)).

Parameters
colorColor instance
Returns
Tint value (-1 to 1) as string

◆ UseTintAttribute()

bool NanoXLSX.Interfaces.Writer.IColorWriter.UseTintAttribute ( Color color)

Gets whether a tint value is used for the given color instance.

Parameters
colorColor instance
Returns
True if tint is used

The documentation for this interface was generated from the following file: