'Declaration
Public Structure Color Inherits System.ValueType
'Usage
Dim instance As Color
public struct Color : System.ValueType
'Declaration
Public Structure Color Inherits System.ValueType
'Usage
Dim instance As Color
public struct Color : System.ValueType
// Get a new SpreadsheetGear.Color from the readonly list of colors in SpreadsheetGear.Colors SpreadsheetGear.Color sgColor = SpreadsheetGear.Colors.Navy; // Use the SpreadsheetGear.Drawing.Color implicit converters to // get instances of SpreadsheetGear.Drawing.Color and System.Drawing.Color. SpreadsheetGear.Drawing.Color sgDrawingColor = sgColor; System.Drawing.Color systemColor = sgDrawingColor; // Use the implicit converters to go the other way. SpreadsheetGear.Drawing.Color sgDrawingColor2 = systemColor; SpreadsheetGear.Color sgColor2 = sgDrawingColor2; // Use the static converters between SpreadsheetGear.Color and System.Drawing.Color SpreadsheetGear.Drawing.Color sgColor3 = SpreadsheetGear.Drawing.Color.GetSpreadsheetGearColor(systemColor); System.Drawing.Color systemColor2 = SpreadsheetGear.Drawing.Color.GetDrawingColor(sgColor); Console.WriteLine(" sgColor ={0}\r\n sgColor2s{1}\r\n sgColor3={2}", sgColor, sgColor2, sgColor3); Console.WriteLine(" sgDrawingColor ={0}\r\n sgDrawingColor2s{1}", sgDrawingColor, sgDrawingColor2); Console.WriteLine(" systemColor ={0}\r\n systemColor2s{1}", systemColor, systemColor2);
System.Object
System.ValueType
SpreadsheetGear.Drawing.Color
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2