C# Class Netsy.DataModel.RgbColor

A color value as RGB (red, green and blue)
Inheritance: EtsyColor
ファイルを表示 Open project: AnthonySteele/Netsy Class Usage Examples

Public Methods

Method Description
RgbColor ( int red, int green, int blue ) : System.Globalization

Initializes a new instance of the RgbColor class from numeric values

RgbColor ( string value ) : System.Globalization

Initializes a new instance of the RgbColor class from a string value

ToString ( ) : string

Display for debug or for sending to server

Private Methods

Method Description
TwoDigitsHex ( int value ) : string

Turn the number into two hex digits, with leading zero

Method Details

RgbColor() public method

Initializes a new instance of the RgbColor class from numeric values
public RgbColor ( int red, int green, int blue ) : System.Globalization
red int the red value of the color
green int the green value of the color
blue int the blue value of the color>
return System.Globalization

RgbColor() public method

Initializes a new instance of the RgbColor class from a string value
public RgbColor ( string value ) : System.Globalization
value string contains the full color value
return System.Globalization

ToString() public method

Display for debug or for sending to server
public ToString ( ) : string
return string