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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oColorConverter System.Drawing.ColorConverter
m_oCommonColorNames String>.Dictionary

Méthodes publiques

Méthode Description
ColorConverter2 ( ) : System

Initializes a new instance of the ColorConverter2 class.

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

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

ColorConverter2() public méthode

Initializes a new instance of the ColorConverter2 class.
public ColorConverter2 ( ) : System
Résultat System

GraphToWorkbook() public méthode

public GraphToWorkbook ( Color graphValue ) : String
graphValue Color
Résultat String

TryWorkbookToGraph() public méthode

public TryWorkbookToGraph ( String workbookValue, Color &graphValue ) : System.Boolean
workbookValue String
graphValue Color
Résultat System.Boolean

Property Details

m_oColorConverter protected_oe property

protected ColorConverter,System.Drawing m_oColorConverter
Résultat System.Drawing.ColorConverter

m_oCommonColorNames protected_oe property

protected Dictionary m_oCommonColorNames
Résultat String>.Dictionary