Export (0) Print
Expand All

Color.op_Addition Method

Adds two Color structures.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)

public static Color operator + (
	Color color1,
	Color color2
)
You cannot use methods in XAML.

Parameters

color1

The first Color structure to add.

color2

The second Color structure to add.

Return Value

The result of adding color1 and color2.

Color structures are added together by adding the alpha, red, green, and blue channels of the first color to the alpha, red, green, and blue channels of the second color. For example, the alpha channel of color1 and the alpha channel of color2 are added together to produce the alpha channel of the resulting Color structure. The same is done with the red, green, and blue channels to produce the red, green, and blue channels of the new Color structure.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft