Click or drag to resize
NanoXLSX

StyleReaderGetColor Method

Resolves a color value from an XML node, when a rgb attribute exists. If the value is null, the fallback will be returned

Namespace: NanoXLSX.LowLevel
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
private static string GetColor(
	XmlNode node,
	string fallback
)

Parameters

node  XmlNode
Node to check
fallback  String
Fallback value if the color could not be resolved

Return Value

String
RGB value as string or the fallback
See Also