<?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>typeHex</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>System</Namespace>
        </Import>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>Number</ID>
          <Type/>
          <ToolTip>取代為整數。</ToolTip>
          <Default>48</Default>
          <Function/>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body"><![CDATA[Dim hexString As String = $Number$.ToString("X")]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
