C# Class Smrf.NodeXL.ExcelTemplate.ColorConverter2

Class that converts a color between values used in the Excel workbook and values used in the NodeXL graph.
This is called ColorConverter2 to distinguish it from System.Drawing.ColorConverter without requiring the specification of a namespace.

Colors are treated differently from the other value types that derive from TextValueConverterBase, so this class doesn't derive from that base class.

Inheritance: Object
Mostra file Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oColorConverter System.Drawing.ColorConverter
m_oCommonColorNames String>.Dictionary

Public Methods

Method Description
ColorConverter2 ( ) : System

Initializes a new instance of the ColorConverter2 class.

GraphToWorkbook ( Color graphValue ) : String
TryWorkbookToGraph ( String workbookValue, Color &graphValue ) : System.Boolean

Private Methods

Method Description
AssertValid ( ) : void

Method Details

ColorConverter2() public method

Initializes a new instance of the ColorConverter2 class.
public ColorConverter2 ( ) : System
return System

GraphToWorkbook() public method

public GraphToWorkbook ( Color graphValue ) : String
graphValue Color
return String

TryWorkbookToGraph() public method

public TryWorkbookToGraph ( String workbookValue, Color &graphValue ) : System.Boolean
workbookValue String
graphValue Color
return System.Boolean

Property Details

m_oColorConverter protected_oe property

protected ColorConverter,System.Drawing m_oColorConverter
return System.Drawing.ColorConverter

m_oCommonColorNames protected_oe property

protected Dictionary m_oCommonColorNames
return String>.Dictionary