<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Cambia los colores de fondo y de primer plano en una ventana de consola</Title>
      <Author>Microsoft Corporation</Author>
      <Description>Cambia el color de fondo y el color del texto de la ventana de la consola.</Description>
      <Shortcut>appChanCol</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>background</ID>
          <Type>ConsoleColor</Type>
          <ToolTip>Reemplazar por el color de fondo nuevo.</ToolTip>
          <Default>ConsoleColor.DarkRed</Default>
        </Literal>
        <Literal>
          <ID>foreground</ID>
          <Type>ConsoleColor</Type>
          <ToolTip>Reemplazar por el color de primer plano.</ToolTip>
          <Default>ConsoleColor.Gray</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body"><![CDATA[Console.BackgroundColor = $background$
Console.ForegroundColor = $foreground$
Console.Clear()

]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
