20 references to Color
mscorlib (20)
system\console.cs (20)
718
private static Win32Native.
Color
ConsoleColorToColorAttribute(ConsoleColor color, bool isBackground)
724
Win32Native.
Color
c = (Win32Native.
Color
) color;
728
c = (Win32Native.
Color
) ((int)c << 4);
733
private static ConsoleColor ColorAttributeToConsoleColor(Win32Native.
Color
c)
736
if ((c & Win32Native.
Color
.BackgroundMask) != 0)
737
c = (Win32Native.
Color
) (((int)c) >> 4);
754
Win32Native.
Color
c = (Win32Native.
Color
) csbi.wAttributes & Win32Native.
Color
.BackgroundMask;
763
Win32Native.
Color
c = ConsoleColorToColorAttribute(value, true);
774
attrs &= ~((short)Win32Native.
Color
.BackgroundMask);
795
Win32Native.
Color
c = (Win32Native.
Color
) csbi.wAttributes & Win32Native.
Color
.ForegroundMask;
804
Win32Native.
Color
c = ConsoleColorToColorAttribute(value, false);
815
attrs &= ~((short)Win32Native.
Color
.ForegroundMask);
920
Win32Native.
Color
c = ConsoleColorToColorAttribute(sourceBackColor, true);
995
Contract.Assert((int)Win32Native.
Color
.ColorMask == 0xff, "Make sure one byte is large enough to store a Console color value!");
996
_defaultColors = (byte) (csbi.wAttributes & (short) Win32Native.
Color
.ColorMask);