Color Constructor

Initializes a new instance of the Color structure.

Overload List

public Color(Colors)

public Color(float, float, float)

public Color(int, int, int);

MCML Inline Syntax

Color.Color Constructor

Initializes a new instance of the Color structure.

  public Color(
  Colors  
  color
);

Parameters

color

Microsoft.MediaCenter.UI.Colors.  A system-defined color.

Color.Color Constructor

Initializes a new instance of the Color structure.

  public Color(
  float  
  red
  , 
  float  green, 
  float  blue
);

Parameters

red

System.Int32.  The red component value of this color. This value must be between 0 and 255.

green

System.Int32.  The green component of this color. This value must be between 0 and 255.

blue

System.Int32.  The blue component of this color. This value must be between 0 and 255.

Color.Color Constructor

Initializes a new instance of the Color structure.

  public Color(
  int  
  red
  , 
  int  green, 
  int  blue
);

Parameters

red

System.Int32.  The red component value of this color. This value must be between 0 and 255.

green

System.Int32.  The green component of this color. This value must be between 0 and 255.

blue

System.Int32.  The blue component of this color. This value must be between 0 and 255.

MCML Inline Syntax

  Color="
  red
  ,
  green
  ,
  blue
  "
Color="alpha,red,green,blue"
Color="color"

Parameters

red

System.Int32.  The red component value of this color. This value must be between 0 and 255.

green

System.Int32.  The green component of this color. This value must be between 0 and 255.

blue

System.Int32.  The blue component of this color. This value must be between 0 and 255.

alpha

System.Int32.  The alpha component of this color. When this value is not specified, a value of 0 is assumed, and a transparent color is created. For an opaque color, set this value to 255.

color

Microsoft.MediaCenter.UI.Colors.  A system-defined color.

Requirements

Reference: Microsoft.MediaCenter.UI

Namespace: Microsoft.MediaCenter.UI

Assembly: Microsoft.MediaCenter.UI.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also