<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>變更主控台視窗中的前景和背景色彩</Title>
      <Author>Microsoft Corporation</Author>
      <Description>變更主控台視窗的背景和文字色彩。</Description>
      <Shortcut>appChanCol</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>background</ID>
          <Type>ConsoleColor</Type>
          <ToolTip>取代為新的背景色彩。</ToolTip>
          <Default>ConsoleColor.DarkRed</Default>
        </Literal>
        <Literal>
          <ID>foreground</ID>
          <Type>ConsoleColor</Type>
          <ToolTip>取代為新的前景色彩。</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>
